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 |
66 |
22 |
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, FileMapper[]) |
BAD_PRACTICE |
RV_RETURN_VALUE_IGNORED_BAD_PRACTICE |
253 |
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 |
120 |
Medium |
org.apache.maven.plugins.dependency.ListClassesMojo
Bug |
Category |
Details |
Line |
Priority |
Redundant nullcheck of org.apache.maven.plugins.dependency.ListClassesMojo.artifact, which is known to be non-null in org.apache.maven.plugins.dependency.ListClassesMojo.makeBuildingRequest() |
STYLE |
RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE |
220 |
Medium |
Unread field: org.apache.maven.plugins.dependency.ListClassesMojo.packaging |
PERFORMANCE |
URF_UNREAD_FIELD |
124 |
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 |
164 |
Medium |
org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem.getFileMappers() may expose internal representation by returning ArtifactItem.fileMappers |
MALICIOUS_CODE |
EI_EXPOSE_REP |
403 |
Medium |
org.apache.maven.plugins.dependency.fromConfiguration.ArtifactItem.setFileMappers(FileMapper[]) may expose internal representation by storing an externally mutable object into ArtifactItem.fileMappers |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
414 |
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.fromConfiguration.UnpackMojo
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.getFileMappers() may expose internal representation by returning UnpackMojo.fileMappers |
MALICIOUS_CODE |
EI_EXPOSE_REP |
232 |
Medium |
org.apache.maven.plugins.dependency.fromConfiguration.UnpackMojo.setFileMappers(FileMapper[]) may expose internal representation by storing an externally mutable object into UnpackMojo.fileMappers |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
243 |
Medium |
org.apache.maven.plugins.dependency.fromDependencies.BuildClasspathMojo
Bug |
Category |
Details |
Line |
Priority |
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 |
199 |
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 |
338 |
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.fromDependencies.UnpackDependenciesMojo
Bug |
Category |
Details |
Line |
Priority |
org.apache.maven.plugins.dependency.fromDependencies.UnpackDependenciesMojo.getFileMappers() may expose internal representation by returning UnpackDependenciesMojo.fileMappers |
MALICIOUS_CODE |
EI_EXPOSE_REP |
180 |
Medium |
org.apache.maven.plugins.dependency.fromDependencies.UnpackDependenciesMojo.setFileMappers(FileMapper[]) may expose internal representation by storing an externally mutable object into UnpackDependenciesMojo.fileMappers |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
191 |
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 |
75 |
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 |
359-363 |
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 |
175 |
Medium |
org.apache.maven.plugins.dependency.tree.TreeMojo
Bug |
Category |
Details |
Line |
Priority |
Useless object stored in variable exclusions of method org.apache.maven.plugins.dependency.tree.TreeMojo.buildTree(DependencyNode, DependencyNode) |
STYLE |
UC_USELESS_OBJECT |
390 |
Medium |
org.apache.maven.plugins.dependency.tree.VerboseDependencyGraphBuilder
Bug |
Category |
Details |
Line |
Priority |
Return value of org.eclipse.aether.graph.Dependency.setArtifact(Artifact) ignored, is this OK in org.apache.maven.plugins.dependency.tree.VerboseDependencyGraphBuilder.applyDependencyManagementDfs(Map, DependencyNode) |
STYLE |
RV_RETURN_VALUE_IGNORED_INFERRED |
174 |
Medium |
org.apache.maven.plugins.dependency.utils.DependencyUtil
Bug |
Category |
Details |
Line |
Priority |
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.dependency.utils.DependencyUtil.write(String, File, boolean, String) |
BAD_PRACTICE |
RV_RETURN_VALUE_IGNORED_BAD_PRACTICE |
248 |
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 |