FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.0

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
242200

org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute(): new java.io.PrintWriter(File)I18NDM_DEFAULT_ENCODING240High
org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.copyDirectoryContentIntoArchive(File, String, ArchiveOutputStream) may fail to clean up java.io.InputStream on checked exceptionEXPERIMENTALOBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE488Medium
La méthode org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.addContextXmlToWar(File, File) peut ne pas fermer un fluxBAD_PRACTICEOS_OPEN_STREAM552Medium
La méthode org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute() peut ne pas fermer un fluxBAD_PRACTICEOS_OPEN_STREAM350Medium
exceptional return value of java.io.File.createNewFile() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE237Medium
exceptional return value of java.io.File.delete() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE208Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE228Medium

org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo

BugCategoryDetailsLinePriority
org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.parseContextFile(File) may fail to clean up java.io.InputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION589Medium
exceptional return value of java.io.File.mkdir() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.addContextFromArtifact(Tomcat, List, Artifact, String, File, boolean)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE1225Medium
exceptional return value of java.io.File.mkdir() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.initConfiguration()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE791Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.initConfiguration()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE788Medium
exceptional return value of java.io.File.delete() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE1048Medium
L'utilisation de GetResource dans org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.copyFile(String, File) peut-être instable si la classe est étendueBAD_PRACTICEUI_INHERITANCE_UNSAFE_GETRESOURCE859Medium
La méthode org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.waitIndefinitely() contient un wait() non conditionnéMT_CORRECTNESSUW_UNCOND_WAIT1137Medium
wait() en dehors d'une boucle dans org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.waitIndefinitely()MT_CORRECTNESSWA_NOT_IN_LOOP1137Medium

org.apache.tomcat.maven.plugin.tomcat7.run.HelpMojo

BugCategoryDetailsLinePriority
Champ jamais écrit : org.apache.tomcat.maven.plugin.tomcat7.run.HelpMojo.goalCORRECTNESSUWF_UNWRITTEN_FIELD129Medium

org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo

BugCategoryDetailsLinePriority
Found reliance on default encoding in org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.getContextFile(): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING175High
Found reliance on default encoding in org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.getContextFile(): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING179High
Déréférencement d'un pointeur null dans la méthode org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.getContextFile()CORRECTNESSNP_ALWAYS_NULL195High