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
36 12 0 0

org.apache.maven.plugins.ear.AbstractEarModule

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

org.apache.maven.plugins.ear.ApplicationXmlWriter

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

org.apache.maven.plugins.ear.EarMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.ear.EarMojo.changeManifestClasspath(EarModule, File, JavaEEVersion): new java.io.PrintWriter(File) I18N DM_DEFAULT_ENCODING 802 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.ear.EarMojo.changeManifestClasspath(EarModule, File, JavaEEVersion) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 683 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.ear.EarMojo.copyFile(File, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 626 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.ear.EarMojo.copyModules(JavaEEVersion, List) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 384 Medium

org.apache.maven.plugins.ear.GenerateApplicationXmlMojo

Bug Category Details Line Priority
Invocation of toString on allEnvEntries in org.apache.maven.plugins.ear.GenerateApplicationXmlMojo.buildEnvEntries() CORRECTNESS DMI_INVOKING_TOSTRING_ON_ARRAY 358 High
Invocation of toString on allResourceRefEntries in org.apache.maven.plugins.ear.GenerateApplicationXmlMojo.buildResourceRefs() CORRECTNESS DMI_INVOKING_TOSTRING_ON_ARRAY 470 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.ear.GenerateApplicationXmlMojo.generateJbossDeploymentDescriptor() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 266 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.ear.GenerateApplicationXmlMojo.generateStandardDeploymentDescriptor(JavaEEVersion) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 241 Medium

org.apache.maven.plugins.ear.util.JavaEEVersion

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