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
32 22 0 0

org.apache.maven.plugins.war.AbstractWarMojo

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

org.apache.maven.plugins.war.Overlay

Bug Category Details Line Priority
Invocation of hashCode on array in org.apache.maven.plugins.war.Overlay.hashCode() CORRECTNESS DMI_INVOKING_HASHCODE_ON_ARRAY 369 Medium
Invocation of hashCode on array in org.apache.maven.plugins.war.Overlay.hashCode() CORRECTNESS DMI_INVOKING_HASHCODE_ON_ARRAY 368 Medium
org.apache.maven.plugins.war.Overlay.getExcludes() may expose internal representation by returning Overlay.excludes MALICIOUS_CODE EI_EXPOSE_REP 222 Medium
org.apache.maven.plugins.war.Overlay.getIncludes() may expose internal representation by returning Overlay.includes MALICIOUS_CODE EI_EXPOSE_REP 198 Medium
org.apache.maven.plugins.war.Overlay.setExcludes(String[]) may expose internal representation by storing an externally mutable object into Overlay.excludes MALICIOUS_CODE EI_EXPOSE_REP2 238 Medium
org.apache.maven.plugins.war.Overlay.setIncludes(String[]) may expose internal representation by storing an externally mutable object into Overlay.includes MALICIOUS_CODE EI_EXPOSE_REP2 214 Medium
org.apache.maven.plugins.war.Overlay.DEFAULT_EXCLUDES is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 53 High
org.apache.maven.plugins.war.Overlay.DEFAULT_INCLUDES is a mutable array MALICIOUS_CODE MS_MUTABLE_ARRAY 48 High
Redundant nullcheck of org.apache.maven.plugins.war.Overlay.getId(), which is known to be non-null in org.apache.maven.plugins.war.Overlay.equals(Object) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 349 Medium
Redundant nullcheck of org.apache.maven.plugins.war.Overlay.getId(), which is known to be non-null in org.apache.maven.plugins.war.Overlay.hashCode() STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 367 Medium

org.apache.maven.plugins.war.packaging.AbstractWarPackagingTask

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

org.apache.maven.plugins.war.packaging.ClassesPackagingTask

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

org.apache.maven.plugins.war.packaging.DependenciesAnalysisPackagingTask

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

org.apache.maven.plugins.war.packaging.OverlayPackagingTask

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdir() ignored in org.apache.maven.plugins.war.packaging.OverlayPackagingTask.getOverlayTempDirectory(WarPackagingContext, Overlay) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 146 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.war.packaging.OverlayPackagingTask.getOverlayTempDirectory(WarPackagingContext, Overlay) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 156 Medium

org.apache.maven.plugins.war.packaging.WarProjectPackagingTask

Bug Category Details Line Priority
new org.apache.maven.plugins.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 71 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.war.packaging.WarProjectPackagingTask.performPackaging(WarPackagingContext) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 93 Medium