From a65e4772f4557a109917532b2d9c49680ce3bb15 Mon Sep 17 00:00:00 2001 From: liamfallon Date: Fri, 14 Sep 2018 16:45:06 +0100 Subject: Fix exception not logged or rethrown Eclipse sonarlint does not check for exception dropping by default, it must be configured. This commit addresses exception dropping in apex. Change-Id: I406838990b3424c2912124b25d7326502cacc96c Issue-ID: POLICY-1034 Signed-off-by: liamfallon --- .../org/onap/policy/apex/examples/servlet/ApexServletListener.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/examples-servlet') diff --git a/examples/examples-servlet/src/main/java/org/onap/policy/apex/examples/servlet/ApexServletListener.java b/examples/examples-servlet/src/main/java/org/onap/policy/apex/examples/servlet/ApexServletListener.java index f6de1285e..78871c385 100644 --- a/examples/examples-servlet/src/main/java/org/onap/policy/apex/examples/servlet/ApexServletListener.java +++ b/examples/examples-servlet/src/main/java/org/onap/policy/apex/examples/servlet/ApexServletListener.java @@ -57,7 +57,7 @@ public class ApexServletListener implements ServletContextListener { final String configFileName = servletContextEvent.getServletContext().getInitParameter("config-file"); final String modelFileName = servletContextEvent.getServletContext().getInitParameter("model-file"); - LOGGER.info("Apex Servliet has been started, config-file= " + configFileName + ", model-file=" + modelFileName); + LOGGER.info("Apex Servliet has been started, config-file={}, model-file={}", configFileName, modelFileName); // Check that a configuration file have been specified if (servletContextEvent.getServletContext().getInitParameter("config-file") == null) { @@ -68,7 +68,7 @@ public class ApexServletListener implements ServletContextListener { } // Construct the Apex command line arguments - final List argsList = new ArrayList(); + final List argsList = new ArrayList<>(); argsList.add("-config-file"); argsList.add(configFileName); -- cgit 1.2.3-korg