/** @deprecated use {@link #logAndExit(ExitLogger, int)} or {@link #abort(int)} */ @Deprecated public static void exit(final int status) { getExiter().exit(status); }
/** @deprecated use {@link #logAndExit(ExitLogger, int)} or {@link #abort(int)} */ @Deprecated public static void exit(final int status) { getExiter().exit(status); }
public static void exit(int status) { getExiter().exit(status); }
public static void exit(int status) { getExiter().exit(status); }
/** * Calls {@link #logBeforeExit(ExitLogger)} and then invokes the {@link Exiter}. * @param logger logger the logger. Cannot be {@code null} * @param status the status code to provide to the exiter */ public static void logAndExit(ExitLogger logger, int status) { logBeforeExit(logger); getExiter().exit(status); // If we get here, the exiter didn't really exit. So we // must be embedded or something, or perhaps in a test case // Reset the logged flag so we can log again the next time // someone "exits" logged.set(false); }
/** * Calls {@link #logBeforeExit(ExitLogger)} and then invokes the {@link Exiter}. * @param logger logger the logger. Cannot be {@code null} * @param status the status code to provide to the exiter */ public static void logAndExit(ExitLogger logger, int status) { logBeforeExit(logger); getExiter().exit(status); // If we get here, the exiter didn't really exit. So we // must be embedded or something, or perhaps in a test case // Reset the logged flag so we can log again the next time // someone "exits" logged.set(false); }