Fork me on GitHub

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
108 16 0 0

Files

Class Bugs
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap 1
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$LeastFailureComparator 1
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$PrioritizedTestComparator 1
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$RunCountComparator 1
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$TestRuntimeComparator 1
org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream 2
org.apache.maven.surefire.suite.RunResult 2
org.apache.maven.surefire.testset.DirectoryScannerParameters 1
org.apache.maven.surefire.testset.RunOrderParameters 2
org.apache.maven.surefire.util.RunOrder 1
org.apache.maven.surefire.util.internal.DumpFileUtils 3

org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap.serialize(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 146 Medium

org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$LeastFailureComparator

Bug Category Details Line Priority
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$LeastFailureComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 311-317 Medium

org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$PrioritizedTestComparator

Bug Category Details Line Priority
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$PrioritizedTestComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 291-297 Medium

org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$RunCountComparator

Bug Category Details Line Priority
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$RunCountComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 205-212 Medium

org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$TestRuntimeComparator

Bug Category Details Line Priority
org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$TestRuntimeComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 301-307 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.write(byte[], int, int): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 57 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 105 High
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.getStackTrace(Exception): new String(byte[]) I18N DM_DEFAULT_ENCODING 109 High

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 115 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.DumpFileUtils

Bug Category Details Line Priority
org.apache.maven.surefire.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.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.util.internal.DumpFileUtils.dumpText(String, File) STYLE REC_CATCH_EXCEPTION 104 Medium