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

org.apache.maven.plugins.dependency.AbstractDependencyMojo

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

org.apache.maven.plugins.dependency.GetMojo

Bug Category Details Line Priority
Unread field: org.apache.maven.plugins.dependency.GetMojo.packaging PERFORMANCE URF_UNREAD_FIELD 111 Medium

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

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

org.apache.maven.plugins.dependency.fromConfiguration.AbstractFromConfigurationMojo

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

org.apache.maven.plugins.dependency.fromConfiguration.CopyMojo

Bug Category Details Line Priority
Unread public/protected field: org.apache.maven.plugins.dependency.fromConfiguration.CopyMojo.useJvmChmod STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 82 Medium

org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo.readClasspathFile(): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 375 High
Found reliance on default encoding in org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo.storeClasspathFile(String, File): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 333 High
Null passed for non-null parameter of new java.util.ArrayList(Collection) in org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo.doExecute() CORRECTNESS NP_NULL_PARAM_DEREF 193 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo.storeClasspathFile(String, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 328 Medium

org.apache.maven.plugins.dependency.fromDependencies.CopyDependenciesMojo

Bug Category Details Line Priority
Unread public/protected field: org.apache.maven.plugins.dependency.fromDependencies.CopyDependenciesMojo.useJvmChmod STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 97 Medium

org.apache.maven.plugins.dependency.resolvers.AbstractResolveMojo

Bug Category Details Line Priority
Unread public/protected field: org.apache.maven.plugins.dependency.resolvers.AbstractResolveMojo.useJvmChmod STYLE URF_UNREAD_PUBLIC_OR_PROTECTED_FIELD 89 Medium

org.apache.maven.plugins.dependency.resolvers.ResolvePluginsMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.dependency.resolvers.ResolvePluginsMojo.doExecute(): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 92 High
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.dependency.resolvers.ResolvePluginsMojo.doExecute() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 89 Medium
Useless object stored in variable resolvedArtifacts of method org.apache.maven.plugins.dependency.resolvers.ResolvePluginsMojo.resolvePluginArtifacts() STYLE UC_USELESS_OBJECT 184 Medium

org.apache.maven.plugins.dependency.tree.TreeMojo

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

org.apache.maven.plugins.dependency.utils.DependencyStatusSets$ModuleDescriptor

Bug Category Details Line Priority
Should org.apache.maven.plugins.dependency.utils.DependencyStatusSets$ModuleDescriptor be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 311-315 Medium

org.apache.maven.plugins.dependency.utils.DependencyUtil

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

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

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

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

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