FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 2.0.3

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
44 11 0 0

org.apache.maven.plugin.ear.AbstractEarModule

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugin.ear.AbstractEarModule.moduleId CORRECTNESS UWF_UNWRITTEN_FIELD 175 Medium
Unwritten public or protected field: org.apache.maven.plugin.ear.AbstractEarModule.altDeploymentDescriptor STYLE UWF_UNWRITTEN_PUBLIC_OR_PROTECTED_FIELD 275 Medium

org.apache.maven.plugin.ear.ApplicationXmlWriter

Bug Category Details Line Priority
Possible null pointer dereference of writer in org.apache.maven.plugin.ear.ApplicationXmlWriter.write(ApplicationXmlWriterContext) CORRECTNESS NP_NULL_ON_SOME_PATH 139 Medium

org.apache.maven.plugin.ear.EarMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.ear.EarMojo.changeManifestClasspath(EarModule, File, JavaEEVersion): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 801 High
Found reliance on default encoding in org.apache.maven.plugin.ear.EarMojo.changeManifestClasspath(EarModule, File, JavaEEVersion): new java.io.PrintWriter(File) I18N DM_DEFAULT_ENCODING 864 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.ear.EarMojo.changeManifestClasspath(EarModule, File, JavaEEVersion) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 769 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.ear.EarMojo.copyFile(File, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 712 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.ear.EarMojo.copyModules(JavaEEVersion, List) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 452 Medium

org.apache.maven.plugin.ear.GenerateApplicationXmlMojo

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.generateJbossDeploymentDescriptor() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 261 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.ear.GenerateApplicationXmlMojo.generateStandardDeploymentDescriptor(JavaEEVersion) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 237 Medium

org.apache.maven.plugin.ear.util.JavaEEVersion

Bug Category Details Line Priority
org.apache.maven.plugin.ear.util.JavaEEVersion defines compareTo(JavaEEVersion) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 186-190 Medium