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
722700

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

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap.fromFile(File): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING65High
Found reliance on default encoding in org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap.serialize(File): new java.io.PrintWriter(OutputStream)I18NDM_DEFAULT_ENCODING103High

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

BugCategoryDetailsLinePriority
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$LeastFailureComparator be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC261-268Medium

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

BugCategoryDetailsLinePriority
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$PrioritizedTestComparator be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC239-246Medium

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

BugCategoryDetailsLinePriority
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$RunCountComparator be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC141-153Medium

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

BugCategoryDetailsLinePriority
Should org.apache.maven.plugin.surefire.runorder.RunEntryStatisticsMap$TestRuntimeComparator be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC250-257Medium

org.apache.maven.surefire.booter.ForkingRunListener

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.surefire.booter.ForkingRunListener.info(String): String.getBytes()I18NDM_DEFAULT_ENCODING215High

org.apache.maven.surefire.booter.SurefireReflector$ClassLoaderProxy

BugCategoryDetailsLinePriority
Should org.apache.maven.surefire.booter.SurefireReflector$ClassLoaderProxy be a _static_ inner class?PERFORMANCESIC_INNER_SHOULD_BE_STATIC137-145Medium

org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream

BugCategoryDetailsLinePriority
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)I18NDM_DEFAULT_ENCODING49High
Found reliance on default encoding in org.apache.maven.surefire.report.ConsoleOutputCapture$ForwardingPrintStream.println(String): String.getBytes()I18NDM_DEFAULT_ENCODING89High

org.apache.maven.surefire.suite.RunResult

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.getStackTrace(Exception): new java.io.PrintWriter(OutputStream)I18NDM_DEFAULT_ENCODING105High
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.getStackTrace(Exception): new String(byte[])I18NDM_DEFAULT_ENCODING107High
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.writeSummary(File, boolean, String): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING252High
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.surefire.suite.RunResult.writeSummary(File, boolean, String)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE236Medium

org.apache.maven.surefire.testset.DirectoryScannerParameters

BugCategoryDetailsLinePriority
org.apache.maven.surefire.testset.DirectoryScannerParameters.getRunOrder() may expose internal representation by returning DirectoryScannerParameters.runOrderMALICIOUS_CODEEI_EXPOSE_REP108Medium

org.apache.maven.surefire.testset.RunOrderParameters

BugCategoryDetailsLinePriority
org.apache.maven.surefire.testset.RunOrderParameters.getRunOrder() may expose internal representation by returning RunOrderParameters.runOrderMALICIOUS_CODEEI_EXPOSE_REP58Medium
new org.apache.maven.surefire.testset.RunOrderParameters(RunOrder[], File) may expose internal representation by storing an externally mutable object into RunOrderParameters.runOrderMALICIOUS_CODEEI_EXPOSE_REP236Medium

org.apache.maven.surefire.util.LazyTestsToRun

BugCategoryDetailsLinePriority
Found reliance on default encoding in new org.apache.maven.surefire.util.LazyTestsToRun(InputStream, ClassLoader, PrintStream): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING69High

org.apache.maven.surefire.util.RunOrder

BugCategoryDetailsLinePriority
org.apache.maven.surefire.util.RunOrder.DEFAULT is a mutable arrayMALICIOUS_CODEMS_MUTABLE_ARRAY47High

org.apache.maven.surefire.util.internal.ByteBuffer

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.surefire.util.internal.ByteBuffer.toString(): new String(byte[], int, int)I18NDM_DEFAULT_ENCODING109High
org.apache.maven.surefire.util.internal.ByteBuffer.getData() may expose internal representation by returning ByteBuffer.dataMALICIOUS_CODEEI_EXPOSE_REP99Medium

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

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.surefire.util.internal.StringUtils.writeOut(PrintStream, int, String): String.getBytes()I18NDM_DEFAULT_ENCODING725High
Found reliance on default encoding in org.apache.maven.surefire.util.internal.StringUtils.writeOut(ByteBuffer, int, String): String.getBytes()I18NDM_DEFAULT_ENCODING715High
Found reliance on default encoding in org.apache.maven.surefire.util.internal.StringUtils.writeOut(byte[], int, String): String.getBytes()I18NDM_DEFAULT_ENCODING736High
Nullcheck of str at line 531 of value previously dereferenced in org.apache.maven.surefire.util.internal.StringUtils.escapeJavaStyleString(PrintStream, byte[], int, int)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE530Medium
Nullcheck of str at line 437 of value previously dereferenced in org.apache.maven.surefire.util.internal.StringUtils.escapeJavaStyleString(ByteBuffer, byte[], int, int)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE436Medium
Nullcheck of str at line 625 of value previously dereferenced in org.apache.maven.surefire.util.internal.StringUtils.escapeJavaStyleString(byte[], int, byte[], int, int)CORRECTNESSRCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE624Medium