Fork me on GitHub

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 2.0.3

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
84 18 0 0

org.apache.maven.plugin.surefire.AbstractSurefireMojo

Bug Category Details Line Priority
org.apache.maven.plugin.surefire.AbstractSurefireMojo.getAdditionalClasspathElements() may expose internal representation by returning AbstractSurefireMojo.additionalClasspathElements MALICIOUS_CODE EI_EXPOSE_REP 3212 Medium
org.apache.maven.plugin.surefire.AbstractSurefireMojo.getClasspathDependencyExcludes() may expose internal representation by returning AbstractSurefireMojo.classpathDependencyExcludes MALICIOUS_CODE EI_EXPOSE_REP 3222 Medium
org.apache.maven.plugin.surefire.AbstractSurefireMojo.getDependenciesToScan() may expose internal representation by returning AbstractSurefireMojo.dependenciesToScan MALICIOUS_CODE EI_EXPOSE_REP 3166 Medium
org.apache.maven.plugin.surefire.AbstractSurefireMojo.setAdditionalClasspathElements(String[]) may expose internal representation by storing an externally mutable object into AbstractSurefireMojo.additionalClasspathElements MALICIOUS_CODE EI_EXPOSE_REP2 3217 Medium
org.apache.maven.plugin.surefire.AbstractSurefireMojo.setClasspathDependencyExcludes(String[]) may expose internal representation by storing an externally mutable object into AbstractSurefireMojo.classpathDependencyExcludes MALICIOUS_CODE EI_EXPOSE_REP2 3227 Medium
org.apache.maven.plugin.surefire.AbstractSurefireMojo.setDependenciesToScan(String[]) may expose internal representation by storing an externally mutable object into AbstractSurefireMojo.dependenciesToScan MALICIOUS_CODE EI_EXPOSE_REP2 3171 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.AbstractSurefireMojo.getForkConfiguration() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1859 Medium

org.apache.maven.plugin.surefire.SurefireHelper

Bug Category Details Line Priority
Exception is caught when Exception is not thrown in org.apache.maven.plugin.surefire.SurefireHelper.commandLineOptions(MavenSession, Log) STYLE REC_CATCH_EXCEPTION 136 Medium

org.apache.maven.plugin.surefire.SurefireProperties

Bug Category Details Line Priority
org.apache.maven.plugin.surefire.SurefireProperties doesn't override java.util.Hashtable.equals(Object) STYLE EQ_DOESNT_OVERRIDE_EQUALS 857-886 Medium
org.apache.maven.plugin.surefire.SurefireProperties.copyProperties(Properties, Map) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 167 Medium

org.apache.maven.plugin.surefire.booterclient.ProviderDetector

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.surefire.booterclient.ProviderDetector.getReader(URL): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 125 High

org.apache.maven.plugin.surefire.booterclient.lazytestprovider.OutputStreamFlushableCommandline$OutputStreamFlushReceiver

Bug Category Details Line Priority
Should org.apache.maven.plugin.surefire.booterclient.lazytestprovider.OutputStreamFlushableCommandline$OutputStreamFlushReceiver be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 41-55 Medium

org.apache.maven.plugin.surefire.report.ConsoleOutputFileReporter

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.report.ConsoleOutputFileReporter.writeTestOutput(byte[], int, int, boolean) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 89 Medium

org.apache.maven.plugin.surefire.report.ConsoleReporter

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.maven.plugin.surefire.report.ConsoleReporter(PrintStream): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 49 High

org.apache.maven.plugin.surefire.report.FileReporter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.surefire.report.FileReporter.testSetStarting(ReportEntry): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 71 High
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.surefire.report.FileReporter.testSetStarting(ReportEntry) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 66 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.report.FileReporter.testSetStarting(ReportEntry) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 61 Medium

org.apache.maven.plugin.surefire.report.StatelessXmlReporter

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.report.StatelessXmlReporter.getOutputStream(WrappedReportEntry) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 289 Medium