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 |
| 57 |
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 |
247 |
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 |
126 |
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 |
| 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.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 |
183 |
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 |
194 |
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 |
354-358 |
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 |
179 |
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 |
485 |
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 |
236 |
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 |
230 |
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 |