FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.2

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
31 24 0 0

org.apache.maven.plugin.war.AbstractWarMojo

Bug Category Details Line Priority
org.apache.maven.plugin.war.AbstractWarMojo.getWebResources() may expose internal representation by returning AbstractWarMojo.webResources MALICIOUS_CODE EI_EXPOSE_REP 829 Medium
org.apache.maven.plugin.war.AbstractWarMojo.setWebResources(Resource[]) may expose internal representation by storing an externally mutable object into AbstractWarMojo.webResources MALICIOUS_CODE EI_EXPOSE_REP2 834 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.war.AbstractWarMojo.buildExplodedWebapp(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 407 Medium

org.apache.maven.plugin.war.HelpMojo

Bug Category Details Line Priority
org.apache.maven.plugin.war.HelpMojo.build() may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 68 Medium

org.apache.maven.plugin.war.Overlay

Bug Category Details Line Priority
Invocation of hashCode on array in org.apache.maven.plugin.war.Overlay.hashCode() CORRECTNESS DMI_INVOKING_HASHCODE_ON_ARRAY 271 Medium
Invocation of hashCode on array in org.apache.maven.plugin.war.Overlay.hashCode() CORRECTNESS DMI_INVOKING_HASHCODE_ON_ARRAY 270 Medium
org.apache.maven.plugin.war.Overlay.getExcludes() may expose internal representation by returning Overlay.excludes MALICIOUS_CODE EI_EXPOSE_REP 169 Medium
org.apache.maven.plugin.war.Overlay.getIncludes() may expose internal representation by returning Overlay.includes MALICIOUS_CODE EI_EXPOSE_REP 154 Medium
org.apache.maven.plugin.war.Overlay.setExcludes(String[]) may expose internal representation by storing an externally mutable object into Overlay.excludes MALICIOUS_CODE EI_EXPOSE_REP2 179 Medium
org.apache.maven.plugin.war.Overlay.setIncludes(String[]) may expose internal representation by storing an externally mutable object into Overlay.includes MALICIOUS_CODE EI_EXPOSE_REP2 164 Medium
org.apache.maven.plugin.war.Overlay.DEFAULT_EXCLUDES is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 46 High
org.apache.maven.plugin.war.Overlay.DEFAULT_INCLUDES is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 44 High
Redundant nullcheck of org.apache.maven.plugin.war.Overlay.getId(), which is known to be non-null in org.apache.maven.plugin.war.Overlay.equals(Object) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 254 Medium
Redundant nullcheck of org.apache.maven.plugin.war.Overlay.getId(), which is known to be non-null in org.apache.maven.plugin.war.Overlay.hashCode() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 269 Medium

org.apache.maven.plugin.war.WarManifestMojo

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.war.WarManifestMojo.execute() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 67 Medium

org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask

Bug Category Details Line Priority
org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.DEFAULT_INCLUDES should be package protected MALICIOUS_CODE MS_PKGPROTECT 48 Medium
exceptional return value of java.io.File.setLastModified(long) ignored in org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFile(WarPackagingContext, File, File, String, boolean) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 347 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.war.packaging.AbstractWarPackagingTask.copyFilteredFile(String, WarPackagingContext, File, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 242 Medium

org.apache.maven.plugin.war.packaging.ClassesPackagingTask

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.war.packaging.ClassesPackagingTask.performPackaging(WarPackagingContext) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 59 Medium

org.apache.maven.plugin.war.packaging.DependenciesAnalysisPackagingTask

Bug Category Details Line Priority
exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.war.packaging.DependenciesAnalysisPackagingTask.removeDependency(WarPackagingContext, Dependency) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 128 Medium

org.apache.maven.plugin.war.packaging.OverlayPackagingTask

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdir() ignored in org.apache.maven.plugin.war.packaging.OverlayPackagingTask.getOverlayTempDirectory(WarPackagingContext, Overlay) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 139 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.war.packaging.OverlayPackagingTask.getOverlayTempDirectory(WarPackagingContext, Overlay) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 149 Medium

org.apache.maven.plugin.war.packaging.WarProjectPackagingTask

Bug Category Details Line Priority
new org.apache.maven.plugin.war.packaging.WarProjectPackagingTask(Resource[], File, File, Overlay) may expose internal representation by storing an externally mutable object into WarProjectPackagingTask.webResources MALICIOUS_CODE EI_EXPOSE_REP2 60 Medium
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.war.packaging.WarProjectPackagingTask.performPackaging(WarPackagingContext) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 79 Medium