The following document contains the results of FindBugs Report
FindBugs Version is 2.0.0
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute(): new java.io.PrintWriter(File) | I18N | DM_DEFAULT_ENCODING | 240 | High |
org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.copyDirectoryContentIntoArchive(File, String, ArchiveOutputStream) may fail to clean up java.io.InputStream on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 488 | Medium |
La méthode org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.addContextXmlToWar(File, File) peut ne pas fermer un flux | BAD_PRACTICE | OS_OPEN_STREAM | 552 | Medium |
La méthode org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute() peut ne pas fermer un flux | BAD_PRACTICE | OS_OPEN_STREAM | 350 | Medium |
exceptional return value of java.io.File.createNewFile() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 237 | Medium |
exceptional return value of java.io.File.delete() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 208 | Medium |
exceptional return value of java.io.File.mkdirs() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractExecWarMojo.execute() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 228 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.parseContextFile(File) may fail to clean up java.io.InputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 589 | Medium |
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_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 1225 | Medium |
exceptional return value of java.io.File.mkdir() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.initConfiguration() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 791 | Medium |
exceptional return value of java.io.File.mkdirs() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.initConfiguration() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 788 | Medium |
exceptional return value of java.io.File.delete() ignored in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 1048 | Medium |
L'utilisation de GetResource dans org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.copyFile(String, File) peut-être instable si la classe est étendue | BAD_PRACTICE | UI_INHERITANCE_UNSAFE_GETRESOURCE | 859 | Medium |
La méthode org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.waitIndefinitely() contient un wait() non conditionné | MT_CORRECTNESS | UW_UNCOND_WAIT | 1137 | Medium |
wait() en dehors d'une boucle dans org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.waitIndefinitely() | MT_CORRECTNESS | WA_NOT_IN_LOOP | 1137 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Champ jamais écrit : org.apache.tomcat.maven.plugin.tomcat7.run.HelpMojo.goal | CORRECTNESS | UWF_UNWRITTEN_FIELD | 129 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.getContextFile(): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 175 | High |
Found reliance on default encoding in org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.getContextFile(): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 179 | High |
Déréférencement d'un pointeur null dans la méthode org.apache.tomcat.maven.plugin.tomcat7.run.RunMojo.getContextFile() | CORRECTNESS | NP_ALWAYS_NULL | 195 | High |