endTrack("main"); //ends main
if (exit) {
System.exit(exitCode);
}
}
<BUG>private static final String threadRootClass() {
StackTraceElement[] trace = Thread.currentThread().getStackTrace();</BUG>
StackTraceElement elem = trace[trace.length - 1];
<BUG>String clazz = elem.getClassName();

return clazz;
}
public static final void usageAndExit(String[] expectedArgs) {
String clazz = threadRootClass();</BUG>
StringBuilder b = new StringBuilder();

endTrack("main"); //ends main
if (exit) {
System.exit(exitCode);
}
}
private static String threadRootClass() {
StackTraceElement[] trace = Thread.currentThread().getStackTrace();
StackTraceElement elem = trace[trace.length - 1];
return elem.getClassName();
}
@SuppressWarnings("UnusedDeclaration")
public static void usageAndExit(String[] expectedArgs) {
String clazz = threadRootClass();
StringBuilder b = new StringBuilder();
