FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
10 6 0 0

org.apache.maven.shared.scriptinterpreter.BeanShellScriptInterpreter

Bug Category Details Line Priority
org.apache.maven.shared.scriptinterpreter.BeanShellScriptInterpreter.evaluateScript(String, List, Map, PrintStream) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 102 Medium

org.apache.maven.shared.scriptinterpreter.FileLogger

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.maven.shared.scriptinterpreter.FileLogger(File, Log): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 83 High
Exceptional return value of java.io.File.mkdirs() ignored in new org.apache.maven.shared.scriptinterpreter.FileLogger(File, Log) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 82 Medium

org.apache.maven.shared.scriptinterpreter.FileLogger$1

Bug Category Details Line Priority
Explicit invocation of Object.finalize() in org.apache.maven.shared.scriptinterpreter.FileLogger$1.run() BAD_PRACTICE FI_EXPLICIT_INVOCATION 91 Medium

org.apache.maven.shared.scriptinterpreter.GroovyScriptInterpreter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.shared.scriptinterpreter.GroovyScriptInterpreter.evaluateScript(String, List, Map, PrintStream): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 63 High
org.apache.maven.shared.scriptinterpreter.GroovyScriptInterpreter.evaluateScript(String, List, Map, PrintStream) creates a org.apache.tools.ant.AntClassLoader classloader, which should be performed within a doPrivileged block MALICIOUS_CODE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 69 Medium