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 17 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 240 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 119 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 296-308 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 163 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 83 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 380 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 338 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 333 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 85 Medium

org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo$ModuleDescriptor

Bug Category Details Line Priority
Should org.apache.maven.plugins.dependency.resolvers.ResolveDependenciesMojo$ModuleDescriptor be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 363-367 Medium

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

Bug Category Details Line Priority
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 484 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 235 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 229 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 153 Medium