diff options
Diffstat (limited to 'tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java')
-rw-r--r-- | tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java b/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java index 33d63b0413..dd93b1a8b6 100644 --- a/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java +++ b/tests/testbench/com/vaadin/launcher/ApplicationRunnerServlet.java @@ -9,7 +9,6 @@ import java.net.MalformedURLException; import java.net.URL; import java.util.Collections; import java.util.LinkedHashSet; -import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; @@ -45,9 +44,6 @@ public class ApplicationRunnerServlet extends AbstractApplicationServlet { } } - private static final Logger logger = Logger - .getLogger(ApplicationRunnerServlet.class.getName()); - /** * The name of the application class currently used. Only valid within one * request. @@ -241,8 +237,10 @@ public class ApplicationRunnerServlet extends AbstractApplicationServlet { // Ignore as this is expected for many packages } catch (Exception e2) { // TODO: handle exception - logger.log(Level.FINE, "Failed to find application class " - + pkg + "." + baseName, e2); + getLogger().log( + Level.FINE, + "Failed to find application class " + pkg + "." + + baseName, e2); } if (appClass != null) { return appClass; @@ -289,4 +287,8 @@ public class ApplicationRunnerServlet extends AbstractApplicationServlet { }; } + private Logger getLogger() { + return Logger.getLogger(ApplicationRunnerServlet.class.getName()); + } + } |