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
107 22 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 69 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 104 High

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 249-255 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 229-235 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 140-147 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 239-245 Medium

org.apache.maven.surefire.booter.ForkingRunListener

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.surefire.booter.ForkingRunListener.println(String): String.getBytes() I18N DM_DEFAULT_ENCODING 420 High
Found reliance on default encoding in org.apache.maven.surefire.booter.ForkingRunListener.writeTestOutput(byte[], int, int, boolean): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 214 High

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 162-171 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 50 High
Found reliance on default encoding in org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream.println(String): String.getBytes() I18N DM_DEFAULT_ENCODING 90 High

org.apache.maven.surefire.report.DefaultDirectConsoleReporter

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.surefire.report.DefaultDirectConsoleReporter.println(byte[], int, int): new String(byte[], int, int) I18N DM_DEFAULT_ENCODING 46 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

org.apache.maven.surefire.util.internal.StringUtils$EncodedArray

Bug Category Details Line Priority
org.apache.maven.surefire.util.internal.StringUtils$EncodedArray.getArray() may expose internal representation by returning StringUtils$EncodedArray.array MALICIOUS_CODE EI_EXPOSE_REP 371 Medium