FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
21 12 0 0

org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.checkstyle.AbstractCheckstyleReport.getOutputStream(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 554 Medium

org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.checkstyle.CheckstyleViolationCheckMojo.getOutputStream(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 640 Medium

org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor

Bug Category Details Line Priority
instanceof will always return false in org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeCheckstyle(CheckstyleExecutorRequest), since a java.net.URLClassLoader can't be a java.io.Closeable CORRECTNESS BC_IMPOSSIBLE_INSTANCEOF 218 Medium
Found reliance on default encoding in org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeCheckstyle(CheckstyleExecutorRequest): java.io.ByteArrayOutputStream.toString() I18N DM_DEFAULT_ENCODING 233 High
Found reliance on default encoding in org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.getOverridingProperties(CheckstyleExecutorRequest): String.getBytes() I18N DM_DEFAULT_ENCODING 432 High
org.apache.maven.plugin.checkstyle.DefaultCheckstyleExecutor.executeCheckstyle(CheckstyleExecutorRequest) creates a java.net.URLClassLoader classloader, which should be performed within a doPrivileged block MALICIOUS_CODE DP_CREATE_CLASSLOADER_INSIDE_DO_PRIVILEGED 172 Medium

org.apache.maven.plugin.checkstyle.HelpMojo

Bug Category Details Line Priority
org.apache.maven.plugin.checkstyle.HelpMojo.build() may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 68 Medium

org.apache.maven.plugin.checkstyle.VelocityTemplate

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.checkstyle.VelocityTemplate.generate(String, String, Context): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 103 High
org.apache.maven.plugin.checkstyle.VelocityTemplate.generate(String, String, Context) may fail to clean up java.io.Writer on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 103 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.checkstyle.VelocityTemplate.generate(String, String, Context) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 100 Medium

org.codehaus.plexus.util.interpolation.RegexBasedInterpolator

Bug Category Details Line Priority
The class name org.codehaus.plexus.util.interpolation.RegexBasedInterpolator shadows the simple name of the superclass org.codehaus.plexus.interpolation.RegexBasedInterpolator BAD_PRACTICE NM_SAME_SIMPLE_NAME_AS_SUPERCLASS 28 High

org.codehaus.plexus.util.interpolation.ValueSource

Bug Category Details Line Priority
The class name org.codehaus.plexus.util.interpolation.ValueSource shadows the simple name of implemented interface org.codehaus.plexus.interpolation.ValueSource BAD_PRACTICE NM_SAME_SIMPLE_NAME_AS_INTERFACE Not available Medium