|
@@ -49,6 +49,13 @@ public final class ExitUtil {
|
|
|
systemExitDisabled = true;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Clear the previous exit record.
|
|
|
+ */
|
|
|
+ public static void clearTerminateCalled() {
|
|
|
+ terminateCalled = false;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* @return true if terminate has been called
|
|
|
*/
|
|
@@ -80,4 +87,4 @@ public final class ExitUtil {
|
|
|
public static void terminate(int status) throws ExitException {
|
|
|
terminate(status, "ExitException");
|
|
|
}
|
|
|
-}
|
|
|
+}
|