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
Classes | Bugs | Errors | Missing Classes |
---|
72 | 27 | 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 | 261-268 | 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 | 239-246 | 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-153 | 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 | 250-257 | Medium |
org.apache.maven.surefire.booter.ForkingRunListener
Bug | Category | Details | Line | Priority |
---|
Found reliance on default encoding in org.apache.maven.surefire.booter.ForkingRunListener.info(String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 215 | 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 | 137-145 | 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 | 105 | High |
Found reliance on default encoding in org.apache.maven.surefire.suite.RunResult.getStackTrace(Exception): new String(byte[]) | I18N | DM_DEFAULT_ENCODING | 107 | 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 | 252 | 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 | 236 | 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 | 58 | 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.LazyTestsToRun
Bug | Category | Details | Line | Priority |
---|
Found reliance on default encoding in new org.apache.maven.surefire.util.LazyTestsToRun(InputStream, ClassLoader, PrintStream): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 69 | High |
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 |
org.apache.maven.surefire.util.internal.StringUtils
Bug | Category | Details | Line | Priority |
---|
Found reliance on default encoding in org.apache.maven.surefire.util.internal.StringUtils.writeOut(PrintStream, int, String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 725 | High |
Found reliance on default encoding in org.apache.maven.surefire.util.internal.StringUtils.writeOut(ByteBuffer, int, String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 715 | High |
Found reliance on default encoding in org.apache.maven.surefire.util.internal.StringUtils.writeOut(byte[], int, String): String.getBytes() | I18N | DM_DEFAULT_ENCODING | 736 | High |
Nullcheck of str at line 531 of value previously dereferenced in org.apache.maven.surefire.util.internal.StringUtils.escapeJavaStyleString(PrintStream, byte[], int, int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 530 | Medium |
Nullcheck of str at line 437 of value previously dereferenced in org.apache.maven.surefire.util.internal.StringUtils.escapeJavaStyleString(ByteBuffer, byte[], int, int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 436 | Medium |
Nullcheck of str at line 625 of value previously dereferenced in org.apache.maven.surefire.util.internal.StringUtils.escapeJavaStyleString(byte[], int, byte[], int, int) | CORRECTNESS | RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE | 624 | Medium |