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
55 24 0 0

org.apache.maven.plugin.dependency.AbstractDependencyMojo

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.dependency.AbstractDependencyMojo.unpack(Artifact, File, String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 260 Medium

org.apache.maven.plugin.dependency.PurgeLocalRepositoryMojo$SnapshotsFilter

Bug Category Details Line Priority
Should org.apache.maven.plugin.dependency.PurgeLocalRepositoryMojo$SnapshotsFilter be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 287-292 Medium

org.apache.maven.plugin.dependency.PurgeLocalRepositoryMojo$SystemScopeExcludeFilter

Bug Category Details Line Priority
Should org.apache.maven.plugin.dependency.PurgeLocalRepositoryMojo$SystemScopeExcludeFilter be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 275-280 Medium

org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.dependency.fromConfiguration.AbstractFromConfigurationMojo.getProcessedArtifactItems(ProcessArtifactItemsRequest) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 163 Medium

org.apache.maven.plugin.dependency.fromConfiguration.CopyMojo

Bug Category Details Line Priority
Field CopyMojo.useJvmChmod masks field in superclass org.apache.maven.plugin.dependency.AbstractDependencyMojo CORRECTNESS MF_CLASS_MASKS_FIELD Not available Medium
Unread public/protected field: org.apache.maven.plugin.dependency.fromConfiguration.CopyMojo.useJvmChmod STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 82 Medium

org.apache.maven.plugin.dependency.fromDependencies.BuildClasspathMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.dependency.fromDependencies.BuildClasspathMojo.readClasspathFile(): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 399 High
Found reliance on default encoding in org.apache.maven.plugin.dependency.fromDependencies.BuildClasspathMojo.storeClasspathFile(String, File): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 359 High
Field BuildClasspathMojo.useJvmChmod masks field in superclass org.apache.maven.plugin.dependency.AbstractDependencyMojo CORRECTNESS MF_CLASS_MASKS_FIELD Not available Medium
Null passed for nonnull parameter of new java.util.ArrayList(Collection) in org.apache.maven.plugin.dependency.fromDependencies.BuildClasspathMojo.doExecute() CORRECTNESS NP_NULL_PARAM_DEREF 221 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.dependency.fromDependencies.BuildClasspathMojo.storeClasspathFile(String, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 354 Medium
Unread public/protected field: org.apache.maven.plugin.dependency.fromDependencies.BuildClasspathMojo.useJvmChmod STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 174 Medium

org.apache.maven.plugin.dependency.fromDependencies.CopyDependenciesMojo

Bug Category Details Line Priority
Field CopyDependenciesMojo.useJvmChmod masks field in superclass org.apache.maven.plugin.dependency.AbstractDependencyMojo CORRECTNESS MF_CLASS_MASKS_FIELD Not available Medium
Unread public/protected field: org.apache.maven.plugin.dependency.fromDependencies.CopyDependenciesMojo.useJvmChmod STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 102 Medium

org.apache.maven.plugin.dependency.resolvers.AbstractResolveMojo

Bug Category Details Line Priority
Field AbstractResolveMojo.useJvmChmod masks field in superclass org.apache.maven.plugin.dependency.AbstractDependencyMojo CORRECTNESS MF_CLASS_MASKS_FIELD Not available Medium
Unread public/protected field: org.apache.maven.plugin.dependency.resolvers.AbstractResolveMojo.useJvmChmod STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 98 Medium

org.apache.maven.plugin.dependency.resolvers.ResolvePluginsMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.dependency.resolvers.ResolvePluginsMojo.doExecute(): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 89 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.dependency.resolvers.ResolvePluginsMojo.doExecute() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 86 Medium

org.apache.maven.plugin.dependency.tree.TreeMojo

Bug Category Details Line Priority
Possible null pointer dereference of recommendedVersion in org.apache.maven.plugin.dependency.tree.TreeMojo.containsVersion(VersionRange, ArtifactVersion) CORRECTNESS NP_NULL_ON_SOME_PATH 612 Medium

org.apache.maven.plugin.dependency.utils.DependencyUtil

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugin.dependency.utils.DependencyUtil.write(String, File, boolean, Log): new java.io.FileWriter(File, boolean) I18N DM_DEFAULT_ENCODING 249 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugin.dependency.utils.DependencyUtil.write(String, File, boolean, Log) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 243 Medium

org.apache.maven.plugin.dependency.utils.markers.DefaultFileMarkerHandler

Bug Category Details Line Priority
Exceptional return value of java.io.File.setLastModified(long) ignored in org.apache.maven.plugin.dependency.utils.markers.DefaultFileMarkerHandler.setMarker() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 129 Medium

org.apache.maven.plugin.dependency.utils.markers.SourcesFileMarkerHandler

Bug Category Details Line Priority
Exceptional return value of java.io.File.createNewFile() ignored in org.apache.maven.plugin.dependency.utils.markers.SourcesFileMarkerHandler.setMarker() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 146 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugin.dependency.utils.markers.SourcesFileMarkerHandler.setMarker() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 150 Medium