Merge pull request #7338 from APriestman/removeStackTrace

Remove test code
This commit is contained in:
Ann Priestman 2021-10-12 09:42:09 -04:00 committed by GitHub
commit d1ee46645a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,11 +99,6 @@ public final class JFileChooserFactory {
* @return The name of the class that requested the JFileChooser or null if not found.
*/
private static String getCallerClassName() {
try {
throw new Exception("test");
} catch (Exception ex) {
ex.printStackTrace();
}
StackTraceElement[] stElements = Thread.currentThread().getStackTrace();
for (int i=1; i<stElements.length; i++) {
StackTraceElement ste = stElements[i];