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
83 32 0 0

org.apache.maven.shared.utils.Expand

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.Expand.extractFile(File, File, InputStream, String, Date, boolean) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 186 Medium
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_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 209 Medium

org.apache.maven.shared.utils.ReaderFactory

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.shared.utils.ReaderFactory.newPlatformReader(File): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 154 High

org.apache.maven.shared.utils.WriterFactory

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.shared.utils.WriterFactory.newPlatformWriter(File): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 146 High
Found reliance on default encoding in org.apache.maven.shared.utils.WriterFactory.newPlatformWriter(OutputStream): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 132 High

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

Bug Category Details Line Priority
org.apache.maven.shared.utils.cli.CommandLineUtils$1.call() appelle explicitement run() sur un thread (Vouliez-vous plutôt dire start() ?) MT_CORRECTNESS RU_INVOKE_RUN 334 High

org.apache.maven.shared.utils.cli.Commandline

Bug Category Details Line Priority
La méthode org.apache.maven.shared.utils.cli.Commandline.getEnvironmentVariables() fait une utilisation inefficace d'un itérateur sur keySet au lieu d'un itérateur sur entrySet PERFORMANCE WMI_WRONG_MAP_ITERATOR 256 Medium

org.apache.maven.shared.utils.cli.StreamFeeder

Bug Category Details Line Priority
Présence d'un notify() isolé dans org.apache.maven.shared.utils.cli.StreamFeeder.run() MT_CORRECTNESS NN_NAKED_NOTIFY 72 Medium

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

Bug Category Details Line Priority
Found reliance on default encoding in new org.apache.maven.shared.utils.cli.StreamPumper(InputStream, StreamConsumer): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 59 High
Found reliance on default encoding in new org.apache.maven.shared.utils.cli.StreamPumper(InputStream, StreamConsumer, Charset): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 69 High

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

Bug Category Details Line Priority
La méthode org.apache.maven.shared.utils.io.DirectoryScanResult.getFilesAdded() risque d'exposer sa représentation interne en renvoyant org.apache.maven.shared.utils.io.DirectoryScanResult.filesAdded MALICIOUS_CODE EI_EXPOSE_REP 48 Medium
La méthode org.apache.maven.shared.utils.io.DirectoryScanResult.getFilesRemoved() risque d'exposer sa représentation interne en renvoyant org.apache.maven.shared.utils.io.DirectoryScanResult.filesRemoved MALICIOUS_CODE EI_EXPOSE_REP 56 Medium
La méthode new org.apache.maven.shared.utils.io.DirectoryScanResult(String[], String[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.shared.utils.io.DirectoryScanResult.filesAdded MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium
La méthode new org.apache.maven.shared.utils.io.DirectoryScanResult(String[], String[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans org.apache.maven.shared.utils.io.DirectoryScanResult.filesRemoved MALICIOUS_CODE EI_EXPOSE_REP2 40 Medium

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

Bug Category Details Line Priority
org.apache.maven.shared.utils.io.DirectoryScanner.DEFAULTEXCLUDES devrait être package protected MALICIOUS_CODE MS_PKGPROTECT 118 Medium

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

Bug Category Details Line Priority
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) I18N DM_DEFAULT_ENCODING 1932 High
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) I18N DM_DEFAULT_ENCODING 1933 High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileAppend(String, String, String): String.getBytes() I18N DM_DEFAULT_ENCODING 358 High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileRead(File, String): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 290 High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileWrite(File, String, String): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 418 High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.fileWriteArray(File, String, String[]): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 464 High
Found reliance on default encoding in org.apache.maven.shared.utils.io.FileUtils.loadFile(File): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 1984 High
La méthode org.apache.maven.shared.utils.io.FileUtils.normalize(String) peut renvoyer null alors qu'elle est déclarée @NonNull CORRECTNESS NP_NONNULL_RETURN_VIOLATION 1056 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.io.FileUtils.copyStreamToFile(InputStream, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 979 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.io.FileUtils.mkdir(String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 615 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.shared.utils.io.FileUtils.mkdirsFor(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 862 Medium

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

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.shared.utils.io.IOUtil.copy(InputStream, Writer, int): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 233 High
Found reliance on default encoding in org.apache.maven.shared.utils.io.IOUtil.copy(Reader, OutputStream, int): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 409 High
Found reliance on default encoding in org.apache.maven.shared.utils.io.IOUtil.copy(String, OutputStream, int): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 512 High

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

Bug Category Details Line Priority
La méthode org.apache.maven.shared.utils.io.MatchPattern.getTokenizedPathString() risque d'exposer sa représentation interne en renvoyant org.apache.maven.shared.utils.io.MatchPattern.tokenized MALICIOUS_CODE EI_EXPOSE_REP 119 Medium

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

Bug Category Details Line Priority
Champ inutilisé : org.apache.maven.shared.utils.io.WalkCollector.startingDir PERFORMANCE URF_UNREAD_FIELD 65 Medium

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

Bug Category Details Line Priority
The class name org.apache.maven.shared.utils.xml.XmlStreamWriter shadows the simple name of the superclass org.apache.commons.io.output.XmlStreamWriter BAD_PRACTICE NM_SAME_SIMPLE_NAME_AS_SUPERCLASS 38-49 High