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
663200

org.apache.maven.shared.utils.Expand

BugCategoryDetailsLinePriority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.utils.Expand.deleteFileOrDir(File)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE229Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.Expand.extractFile(File, File, InputStream, String, Date, boolean)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE184Medium
exceptional return value of java.io.File.setLastModified(long) ignored in org.apache.maven.shared.utils.Expand.extractFile(File, File, InputStream, String, Date, boolean)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE209Medium

org.apache.maven.shared.utils.ReaderFactory

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.shared.utils.ReaderFactory.newPlatformReader(File): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING156High

org.apache.maven.shared.utils.WriterFactory

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.shared.utils.WriterFactory.newPlatformWriter(File): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING147High
Found reliance on default encoding in org.apache.maven.shared.utils.WriterFactory.newPlatformWriter(OutputStream): new java.io.OutputStreamWriter(OutputStream)I18NDM_DEFAULT_ENCODING133High

org.apache.maven.shared.utils.cli.CommandLineUtils$1

BugCategoryDetailsLinePriority
org.apache.maven.shared.utils.cli.CommandLineUtils$1.call() explicitly invokes run on a thread (did you mean to start it instead?)MT_CORRECTNESSRU_INVOKE_RUN257High

org.apache.maven.shared.utils.cli.StreamPumper

BugCategoryDetailsLinePriority
Found reliance on default encoding in new org.apache.maven.shared.utils.cli.StreamPumper(InputStream, PrintWriter, StreamConsumer): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING57High

org.apache.maven.shared.utils.introspection.MethodMap

BugCategoryDetailsLinePriority
Switch statement found in org.apache.maven.shared.utils.introspection.MethodMap.getMostSpecific(List, Class[]) where default case is missingSTYLESF_SWITCH_NO_DEFAULT181-203Medium

org.apache.maven.shared.utils.io.DirectoryScanResult

BugCategoryDetailsLinePriority
org.apache.maven.shared.utils.io.DirectoryScanResult.getFilesAdded() may expose internal representation by returning DirectoryScanResult.filesAddedMALICIOUS_CODEEI_EXPOSE_REP44Medium
org.apache.maven.shared.utils.io.DirectoryScanResult.getFilesRemoved() may expose internal representation by returning DirectoryScanResult.filesRemovedMALICIOUS_CODEEI_EXPOSE_REP52Medium
new org.apache.maven.shared.utils.io.DirectoryScanResult(String[], String[]) may expose internal representation by storing an externally mutable object into DirectoryScanResult.filesAddedMALICIOUS_CODEEI_EXPOSE_REP235Medium
new org.apache.maven.shared.utils.io.DirectoryScanResult(String[], String[]) may expose internal representation by storing an externally mutable object into DirectoryScanResult.filesRemovedMALICIOUS_CODEEI_EXPOSE_REP236Medium

org.apache.maven.shared.utils.io.DirectoryScanner

BugCategoryDetailsLinePriority
org.apache.maven.shared.utils.io.DirectoryScanner.DEFAULTEXCLUDES should be package protectedMALICIOUS_CODEMS_PKGPROTECT118Medium

org.apache.maven.shared.utils.io.FileUtils

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.copyFile(File, File, String, FileUtils$FilterWrapper[], boolean): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING1836High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.copyFile(File, File, String, FileUtils$FilterWrapper[], boolean): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING1837High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileAppend(String, String, String): String.getBytes()I18NDM_DEFAULT_ENCODING353High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileRead(File, String): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING287High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileWrite(File, String, String): new java.io.OutputStreamWriter(OutputStream)I18NDM_DEFAULT_ENCODING413High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileWriteArray(File, String, String[]): new java.io.OutputStreamWriter(OutputStream)I18NDM_DEFAULT_ENCODING460High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.loadFile(File): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING1887High
org.apache.maven.shared.utils.io.FileUtils.deleteFile(File) forces garbage collection; extremely dubious except in benchmarking codePERFORMANCEDM_GC1176High
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.io.FileUtils.copyStreamToFile(InputStream, File)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE951Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.shared.utils.io.FileUtils.fileDelete(String)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE487Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.io.FileUtils.mkdir(String)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE608Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.io.FileUtils.mkdirsFor(File)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE844Medium

org.apache.maven.shared.utils.io.IOUtil

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.maven.shared.utils.io.IOUtil.copy(InputStream, Writer, int): new java.io.InputStreamReader(InputStream)I18NDM_DEFAULT_ENCODING217High
Found reliance on default encoding in org.apache.maven.shared.utils.io.IOUtil.copy(Reader, OutputStream, int): new java.io.OutputStreamWriter(OutputStream)I18NDM_DEFAULT_ENCODING360High
Found reliance on default encoding in org.apache.maven.shared.utils.io.IOUtil.copy(String, OutputStream, int): new java.io.OutputStreamWriter(OutputStream)I18NDM_DEFAULT_ENCODING445High

org.apache.maven.shared.utils.io.MatchPattern

BugCategoryDetailsLinePriority
org.apache.maven.shared.utils.io.MatchPattern.getTokenizedPathString() may expose internal representation by returning MatchPattern.tokenizedMALICIOUS_CODEEI_EXPOSE_REP104Medium

org.apache.maven.shared.utils.io.WalkCollector

BugCategoryDetailsLinePriority
Unread field: org.apache.maven.shared.utils.io.WalkCollector.startingDirPERFORMANCEURF_UNREAD_FIELD57Medium

org.apache.maven.shared.utils.xml.XmlStreamWriter

BugCategoryDetailsLinePriority
The class name org.apache.maven.shared.utils.xml.XmlStreamWriter shadows the simple name of the superclass org.apache.commons.io.output.XmlStreamWriterBAD_PRACTICENM_SAME_SIMPLE_NAME_AS_SUPERCLASS35-42High