@@ -0,0 +1,732 @@
+package npe;%0A%0Aimport java.util.logging.Level;%0Aimport java.util.logging.Logger;%0A%0Apublic class LoggerFalsePositive %7B%0A%09public LoggerFalsePositive(String container) %7B%0A%09%09this.container = container;%0A%09%7D%0A%09private Logger getLogger() %7B%0A%09%09return Logger.getAnonymousLogger();%0A%09%7D%0A%0A%09String container;%0A%0A%09public void log(String message) %7B%0A%0A%09%09Logger logger = null;%0A%09%09if (container != null)%0A%09%09%09logger = getLogger();%0A%09%09if (logger != null)%0A%09%09%09logger.log(Level.SEVERE, %22StandardWrapperValve%5B%22%0A%09%09%09%09%09+ container.toLowerCase() + %22%5D: %22 + message);%0A%09%09else %7B%0A%09%09%09String containerName = null;%0A%09%09%09if (container != null)%0A%09%09%09%09containerName = container.toLowerCase();%0A%09%09%09System.out.println(%22StandardWrapperValve%5B%22 + containerName + %22%5D: %22%0A%09%09%09%09%09+ message);%0A%09%09%7D%0A%0A%09%7D%0A%7D%0A

Add false positive test case for -effort:more