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 |
126 |
16 |
0 |
0 |
org.apache.maven.surefire.api.report.ConsoleOutputCapture$ForwardingPrintStream
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in new org.apache.maven.surefire.api.report.ConsoleOutputCapture$ForwardingPrintStream(boolean, ConsoleOutputReceiver): new org.apache.maven.surefire.api.report.ConsoleOutputCapture$ForwardingPrintStream(OutputStream) |
I18N |
DM_DEFAULT_ENCODING |
49 |
High |
Found reliance on default encoding in org.apache.maven.surefire.api.report.ConsoleOutputCapture$ForwardingPrintStream.write(byte[], int, int): new String(byte[], int, int) |
I18N |
DM_DEFAULT_ENCODING |
57 |
High |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap
Bug |
Category |
Details |
Line |
Priority |
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap.serialize(File) |
BAD_PRACTICE |
RV_RETURN_VALUE_IGNORED_BAD_PRACTICE |
146 |
Medium |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$LeastFailureComparator
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$LeastFailureComparator implements Comparator but not Serializable |
BAD_PRACTICE |
SE_COMPARATOR_SHOULD_BE_SERIALIZABLE |
318-324 |
Medium |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$PrioritizedTestComparator
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$PrioritizedTestComparator implements Comparator but not Serializable |
BAD_PRACTICE |
SE_COMPARATOR_SHOULD_BE_SERIALIZABLE |
298-304 |
Medium |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$RunCountComparator
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$RunCountComparator implements Comparator but not Serializable |
BAD_PRACTICE |
SE_COMPARATOR_SHOULD_BE_SERIALIZABLE |
212-219 |
Medium |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$TestRuntimeComparator
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.runorder.RunEntryStatisticsMap$TestRuntimeComparator implements Comparator but not Serializable |
BAD_PRACTICE |
SE_COMPARATOR_SHOULD_BE_SERIALIZABLE |
308-314 |
Medium |
org.apache.maven.surefire.api.suite.RunResult
Bug |
Category |
Details |
Line |
Priority |
Found reliance on default encoding in org.apache.maven.surefire.api.suite.RunResult.getStackTrace(Exception): new java.io.PrintWriter(OutputStream) |
I18N |
DM_DEFAULT_ENCODING |
105 |
High |
Found reliance on default encoding in org.apache.maven.surefire.api.suite.RunResult.getStackTrace(Exception): new String(byte[]) |
I18N |
DM_DEFAULT_ENCODING |
109 |
High |
org.apache.maven.surefire.api.testset.DirectoryScannerParameters
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.testset.DirectoryScannerParameters.getRunOrder() may expose internal representation by returning DirectoryScannerParameters.runOrder |
MALICIOUS_CODE |
EI_EXPOSE_REP |
115 |
Medium |
org.apache.maven.surefire.api.testset.RunOrderParameters
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.testset.RunOrderParameters.getRunOrder() may expose internal representation by returning RunOrderParameters.runOrder |
MALICIOUS_CODE |
EI_EXPOSE_REP |
53 |
Medium |
new org.apache.maven.surefire.api.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.api.util.RunOrder
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.util.RunOrder.DEFAULT is a mutable array |
MALICIOUS_CODE |
MS_MUTABLE_ARRAY |
47 |
High |
org.apache.maven.surefire.api.util.internal.DumpFileUtils
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.surefire.api.util.internal.DumpFileUtils.createWriter(File) may fail to close stream |
BAD_PRACTICE |
OS_OPEN_STREAM |
117 |
Medium |
Exception is caught when Exception is not thrown in org.apache.maven.surefire.api.util.internal.DumpFileUtils.dumpException(Throwable, String, File) |
STYLE |
REC_CATCH_EXCEPTION |
83 |
Medium |
Exception is caught when Exception is not thrown in org.apache.maven.surefire.api.util.internal.DumpFileUtils.dumpText(String, File) |
STYLE |
REC_CATCH_EXCEPTION |
104 |
Medium |