diff --git a/src/main/java/emissary/admin/PlaceStarter.java b/src/main/java/emissary/admin/PlaceStarter.java index 6ce5d025f6..15e6136a21 100755 --- a/src/main/java/emissary/admin/PlaceStarter.java +++ b/src/main/java/emissary/admin/PlaceStarter.java @@ -26,6 +26,7 @@ /** * Static methods to start places in the system. */ +@SuppressWarnings("SystemExitOutsideMain") public class PlaceStarter { private static final Logger logger = LoggerFactory.getLogger(PlaceStarter.class); diff --git a/src/main/java/emissary/core/sentinel/protocols/actions/Exit.java b/src/main/java/emissary/core/sentinel/protocols/actions/Exit.java index e94762069e..53ab0fdbd1 100644 --- a/src/main/java/emissary/core/sentinel/protocols/actions/Exit.java +++ b/src/main/java/emissary/core/sentinel/protocols/actions/Exit.java @@ -10,6 +10,7 @@ public class Exit extends Action { @Override + @SuppressWarnings("SystemExitOutsideMain") public void trigger(Map trackers) { logger.error("Sentinel detected unrecoverable agents, exiting now -- {}", format(trackers)); System.exit(1); diff --git a/src/main/java/emissary/output/filter/AbstractRollableFilter.java b/src/main/java/emissary/output/filter/AbstractRollableFilter.java index 7eb09b81ab..461b48db9f 100644 --- a/src/main/java/emissary/output/filter/AbstractRollableFilter.java +++ b/src/main/java/emissary/output/filter/AbstractRollableFilter.java @@ -101,6 +101,7 @@ protected void initRollConfig() { /** * Create the local output directories */ + @SuppressWarnings("SystemExitOutsideMain") protected void setupLocalOutputDir() { if (!Files.exists(this.outputPath)) { logger.info("Attempting to create {} output directory, {}", getFilterName(), this.outputPath); @@ -116,6 +117,7 @@ protected void setupLocalOutputDir() { /** * Create the {@link JournaledCoalescer} and {@link Roller} */ + @SuppressWarnings("SystemExitOutsideMain") protected void setupRoller() { try { this.rollable = createRollable(); diff --git a/src/main/java/emissary/roll/RollManager.java b/src/main/java/emissary/roll/RollManager.java index 462a684fe8..5c18e7e8ef 100644 --- a/src/main/java/emissary/roll/RollManager.java +++ b/src/main/java/emissary/roll/RollManager.java @@ -42,6 +42,7 @@ protected RollManager(Configurator configG) { /** * Load the configurator */ + @SuppressWarnings("SystemExitOutsideMain") protected void init() { try { Configurator configG = ConfigUtil.getConfigInfo(this.getClass()); diff --git a/src/main/java/emissary/server/api/Shutdown.java b/src/main/java/emissary/server/api/Shutdown.java index f02b2315b0..6f3f917c80 100644 --- a/src/main/java/emissary/server/api/Shutdown.java +++ b/src/main/java/emissary/server/api/Shutdown.java @@ -34,6 +34,7 @@ public Response forceShutdown(@Context HttpServletRequest request) { return shutdown(request, true); } + @SuppressWarnings("SystemExitOutsideMain") protected Response shutdown(HttpServletRequest request, boolean force) { try { LOG.debug("Calling the stop method");