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 |
66 |
19 |
0 |
0 |
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap.fromFile(File): new java.io.FileReader(File) |
I18N |
DM_DEFAULT_ENCODING |
65 |
High |
Found reliance on default encoding in org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap.serialize(File): new java.io.PrintWriter(OutputStream) |
I18N |
DM_DEFAULT_ENCODING |
103 |
High |
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$LeastFailureComparator
Bug |
Category |
Details |
Line |
Priority |
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$LeastFailureComparator be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
254-259 |
Medium |
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$PrioritizedTestComparator
Bug |
Category |
Details |
Line |
Priority |
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$PrioritizedTestComparator be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
236-241 |
Medium |
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$RunCountComparator
Bug |
Category |
Details |
Line |
Priority |
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$RunCountComparator be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
141-151 |
Medium |
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$TestRuntimeComparator
Bug |
Category |
Details |
Line |
Priority |
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$TestRuntimeComparator be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
245-250 |
Medium |
org.apache.maven.surefire.booter.SurefireReflector$ClassLoaderProxy
Bug |
Category |
Details |
Line |
Priority |
Should org.apache.maven.surefire.booter.SurefireReflector$ClassLoaderProxy be a _static_ inner class? |
PERFORMANCE |
SIC_INNER_SHOULD_BE_STATIC |
136-144 |
Medium |
org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in new org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream(boolean, ConsoleOutputReceiver): new org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream(OutputStream) |
I18N |
DM_DEFAULT_ENCODING |
49 |
High |
Found reliance on default encoding in org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream.println(String): String.getBytes() |
I18N |
DM_DEFAULT_ENCODING |
89 |
High |
org.apache.maven.surefire.suite.RunResult
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.getStackTrace(Exception): new java.io.PrintWriter(OutputStream) |
I18N |
DM_DEFAULT_ENCODING |
119 |
High |
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.getStackTrace(Exception): new String(byte[]) |
I18N |
DM_DEFAULT_ENCODING |
121 |
High |
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.writeSummary(File, boolean, String): new java.io.FileWriter(File) |
I18N |
DM_DEFAULT_ENCODING |
272 |
High |
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.surefire.suite.RunResult.writeSummary(File, boolean, String) |
BAD_PRACTICE |
RV_RETURN_VALUE_IGNORED_BAD_PRACTICE |
256 |
Medium |
org.apache.maven.surefire.testset.DirectoryScannerParameters
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.testset.DirectoryScannerParameters.getRunOrder() may expose internal representation by returning DirectoryScannerParameters.runOrder |
MALICIOUS_CODE |
EI_EXPOSE_REP |
108 |
Medium |
org.apache.maven.surefire.testset.RunOrderParameters
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.testset.RunOrderParameters.getRunOrder() may expose internal representation by returning RunOrderParameters.runOrder |
MALICIOUS_CODE |
EI_EXPOSE_REP |
53 |
Medium |
new org.apache.maven.surefire.testset.RunOrderParameters(RunOrder[], File) may expose internal representation by storing an externally mutable object into RunOrderParameters.runOrder |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
36 |
Medium |
org.apache.maven.surefire.util.RunOrder
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.util.RunOrder.DEFAULT is a mutable array |
MALICIOUS_CODE |
MS_MUTABLE_ARRAY |
47 |
High |
org.apache.maven.surefire.util.internal.ByteBuffer
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in org.apache.maven.surefire.util.internal.ByteBuffer.toString(): new String(byte[], int, int) |
I18N |
DM_DEFAULT_ENCODING |
109 |
High |
org.apache.maven.surefire.util.internal.ByteBuffer.getData() may expose internal representation by returning ByteBuffer.data |
MALICIOUS_CODE |
EI_EXPOSE_REP |
99 |
Medium |