Fork me on GitHub

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

ClassesBugsErrorsMissing Classes
632400

org.apache.maven.plugin.surefire.AbstractSurefireMojo

BugCategoryDetailsLinePriority
org.apache.maven.plugin.surefire.AbstractSurefireMojo.getSuiteXmlFiles() may expose internal representation by returning AbstractSurefireMojo.suiteXmlFilesMALICIOUS_CODEEI_EXPOSE_REP2312Medium
org.apache.maven.plugin.surefire.AbstractSurefireMojo.setSuiteXmlFiles(File[]) may expose internal representation by storing an externally mutable object into AbstractSurefireMojo.suiteXmlFilesMALICIOUS_CODEEI_EXPOSE_REP22318Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.AbstractSurefireMojo.getForkConfiguration()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE1402Medium

org.apache.maven.plugin.surefire.SurefireProperties

BugCategoryDetailsLinePriority
org.apache.maven.plugin.surefire.SurefireProperties doesn't override java.util.Hashtable.equals(Object)STYLEEQ_DOESNT_OVERRIDE_EQUALS736-765Medium
org.apache.maven.plugin.surefire.SurefireProperties.calculateEffectiveProperties(Properties, File, Map, Properties, Log) may fail to clean up java.io.InputStream on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE148Medium
org.apache.maven.plugin.surefire.SurefireProperties.copyProperties(Properties) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR88Medium
org.apache.maven.plugin.surefire.SurefireProperties.copyProperties(Properties, Map) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR186Medium
org.apache.maven.plugin.surefire.SurefireProperties.copyTo(Map) makes inefficient use of keySet iterator instead of entrySet iteratorPERFORMANCEWMI_WRONG_MAP_ITERATOR204Medium

org.apache.maven.plugin.surefire.booterclient.ForkConfiguration

BugCategoryDetailsLinePriority
org.apache.maven.plugin.surefire.booterclient.ForkConfiguration.createJar(List) concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION232Medium

org.apache.maven.plugin.surefire.booterclient.ForkStarter$InputStreamCloser

BugCategoryDetailsLinePriority
Should org.apache.maven.plugin.surefire.booterclient.ForkStarter$InputStreamCloser be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC93-111Medium

org.apache.maven.plugin.surefire.booterclient.MockReporter

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.plugin.surefire.booterclient.MockReporter.writeTestOutput(byte[], int, int, boolean): new String(byte[], int, int)I18NDM_DEFAULT_ENCODING158High

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

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.plugin.surefire.booterclient.ProviderDetector.getReader(URL): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING124High

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

BugCategoryDetailsLinePriority
Should org.apache.maven.plugin.surefire.booterclient.lazytestprovider.OutputStreamFlushableCommandline$OutputStreamFlushReceiver be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC41-55Medium

org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestProvidingInputStream

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestProvidingInputStream.read(): String.getBytes()I18NDM_DEFAULT_ENCODING92High
Inconsistent synchronization of org.apache.maven.plugin.surefire.booterclient.lazytestprovider.TestProvidingInputStream.flushReceiverProvider; locked 75% of timeMT_CORRECTNESSIS2_INCONSISTENT_SYNC68Medium

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

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.plugin.surefire.report.ConsoleOutputFileReporter.writeTestOutput(byte[], int, int, boolean): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING89High
Found reliance on default encoding in org.apache.maven.plugin.surefire.report.ConsoleOutputFileReporter.writeTestOutput(byte[], int, int, boolean): new String(byte[], int, int)I18NDM_DEFAULT_ENCODING91High
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.report.ConsoleOutputFileReporter.writeTestOutput(byte[], int, int, boolean)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE85Medium

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

BugCategoryDetailsLinePriority
Found reliance on default encoding in new org.apache.maven.plugin.surefire.report.ConsoleReporter(PrintStream): new java.io.OutputStreamWriter(OutputStream)I18NDM_DEFAULT_ENCODING55High

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

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.plugin.surefire.report.FileReporter.testSetStarting(ReportEntry): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING69High
exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.surefire.report.FileReporter.testSetStarting(ReportEntry)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE64Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.report.FileReporter.testSetStarting(ReportEntry)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE59Medium

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

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.surefire.report.StatelessXmlReporter.getWriter(WrappedReportEntry)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE130Medium
Unread field: org.apache.maven.plugin.surefire.report.StatelessXmlReporter.encoding; should this field be static?PERFORMANCESS_SHOULD_BE_STATIC76Medium