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
100 27 0 0

org.apache.maven.plugins.assembly.archive.archiver.AssemblyProxyArchiver

Bug Category Details Line Priority
Possible null pointer dereference in org.apache.maven.plugins.assembly.archive.archiver.AssemblyProxyArchiver.doAddFileSet(FileSet) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 740 Medium
Possible null pointer dereference in org.apache.maven.plugins.assembly.archive.archiver.AssemblyProxyArchiver.doAddFileSet(FileSet) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 754 Medium

org.apache.maven.plugins.assembly.archive.archiver.PrefixedArchivedFileSet

Bug Category Details Line Priority
Possible null pointer dereference in org.apache.maven.plugins.assembly.archive.archiver.PrefixedArchivedFileSet.getPrefix() due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 104 Medium

org.apache.maven.plugins.assembly.archive.phase.AssemblyArchiverPhaseComparator

Bug Category Details Line Priority
org.apache.maven.plugins.assembly.archive.phase.AssemblyArchiverPhaseComparator.compare(AssemblyArchiverPhase, AssemblyArchiverPhase) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 47 Medium
org.apache.maven.plugins.assembly.archive.phase.AssemblyArchiverPhaseComparator implements Comparator but not Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 27-47 Medium

org.apache.maven.plugins.assembly.archive.phase.RepositoryAssemblyPhase

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.assembly.archive.phase.RepositoryAssemblyPhase.execute(Assembly, Archiver, AssemblerConfigurationSource) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 92 Medium

org.apache.maven.plugins.assembly.archive.task.AddArtifactTask

Bug Category Details Line Priority
org.apache.maven.plugins.assembly.archive.task.AddArtifactTask.DEFAULT_INCLUDES_ARRAY should be package protected MALICIOUS_CODE MS_PKGPROTECT 49 Medium

org.apache.maven.plugins.assembly.filter.SimpleAggregatingDescriptorHandler

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.assembly.filter.SimpleAggregatingDescriptorHandler.readProperties(FileInfo): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 198 High
Found reliance on default encoding in org.apache.maven.plugins.assembly.filter.SimpleAggregatingDescriptorHandler.writePropertiesFile(): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 112 High
Unread field: org.apache.maven.plugins.assembly.filter.SimpleAggregatingDescriptorHandler.commentChars; should this field be static? PERFORMANCE SS_SHOULD_BE_STATIC 57 Medium

org.apache.maven.plugins.assembly.format.ReaderFormatter$1

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.assembly.format.ReaderFormatter$1.transform(PlexusIoResource, InputStream): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 142 High

org.apache.maven.plugins.assembly.io.DefaultAssemblyReader

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.assembly.io.DefaultAssemblyReader.mergeComponentsWithMainAssembly(Assembly, File, AssemblerConfigurationSource, ComponentXpp3Reader$ContentTransformer): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 455 High

org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 400 High
Boxing/unboxing to parse a primitive org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 430 High
Private method org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 185 Medium
Private method org.apache.maven.plugins.assembly.model.io.xpp3.AssemblyXpp3Reader.getDateValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 273 Medium

org.apache.maven.plugins.assembly.model.io.xpp3.ComponentXpp3Reader

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.maven.plugins.assembly.model.io.xpp3.ComponentXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 400 High
Boxing/unboxing to parse a primitive org.apache.maven.plugins.assembly.model.io.xpp3.ComponentXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 430 High
Private method org.apache.maven.plugins.assembly.model.io.xpp3.ComponentXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 185 Medium
Private method org.apache.maven.plugins.assembly.model.io.xpp3.ComponentXpp3Reader.getDateValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 273 Medium

org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo

Bug Category Details Line Priority
org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.getDescriptorReferences() may expose internal representation by returning AbstractAssemblyMojo.descriptorRefs MALICIOUS_CODE EI_EXPOSE_REP 627 Medium
org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.getDescriptors() may expose internal representation by returning AbstractAssemblyMojo.descriptors MALICIOUS_CODE EI_EXPOSE_REP 639 Medium
org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.setDescriptorRefs(String[]) may expose internal representation by storing an externally mutable object into AbstractAssemblyMojo.descriptorRefs MALICIOUS_CODE EI_EXPOSE_REP2 783 Medium
org.apache.maven.plugins.assembly.mojos.AbstractAssemblyMojo.setDescriptors(String[]) may expose internal representation by storing an externally mutable object into AbstractAssemblyMojo.descriptors MALICIOUS_CODE EI_EXPOSE_REP2 644 Medium

org.apache.maven.plugins.assembly.utils.AssemblyFileUtils

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.assembly.utils.AssemblyFileUtils.verifyTempDirectoryAvailability(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 89 Medium

org.apache.maven.plugins.assembly.utils.LineEndingsUtils

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.assembly.utils.LineEndingsUtils.convertLineEndings(File, File, LineEndings, Boolean, String): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 116 High
Found reliance on default encoding in org.apache.maven.plugins.assembly.utils.LineEndingsUtils.convertLineEndings(File, File, LineEndings, Boolean, String): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 117 High