package npe;

import java.util.logging.Level;
import java.util.logging.Logger;

public class LoggerFalsePositive {
	public LoggerFalsePositive(String container) {
		this.container = container;
	}
	private Logger getLogger() {
		return Logger.getAnonymousLogger();
	}

	String container;

	public void log(String message) {

		Logger logger = null;
		if (container != null)
			logger = getLogger();
		if (logger != null)
			logger.log(Level.SEVERE, "StandardWrapperValve["
					+ container.toLowerCase() + "]: " + message);
		else {
			String containerName = null;
			if (container != null)
				containerName = container.toLowerCase();
			System.out.println("StandardWrapperValve[" + containerName + "]: "
					+ message);
		}

	}
}

Add false positive test case for -effort:more
Add false positive test case for -effort:more


git-svn-id: e7d6bde23f017c9ff4efd468d79d66def666766b@6268 eae3c2d3-9b19-0410-a86e-396b6ccb6ab3
