FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.2

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
38 27 0 0

org.apache.maven.plugins.shade.DefaultShader

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.shade.DefaultShader.shade(ShadeRequest) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 92 Medium

org.apache.maven.plugins.shade.DefaultShader$1

Bug Category Details Line Priority
Load of known null value in org.apache.maven.plugins.shade.DefaultShader$1.visitSource(String, String) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 348 Medium

org.apache.maven.plugins.shade.DefaultShader$RelocatorRemapper

Bug Category Details Line Priority
Should org.apache.maven.plugins.shade.DefaultShader$RelocatorRemapper be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 456-532 Medium

org.apache.maven.plugins.shade.filter.MinijarFilter

Bug Category Details Line Priority
new org.apache.maven.plugins.shade.filter.MinijarFilter(MavenProject, Log, List) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 76 Medium

org.apache.maven.plugins.shade.mojo.ArchiveFilter

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugins.shade.mojo.ArchiveFilter.artifact CORRECTNESS UWF_UNWRITTEN_FIELD 37 Medium
Unwritten field: org.apache.maven.plugins.shade.mojo.ArchiveFilter.excludes CORRECTNESS UWF_UNWRITTEN_FIELD 47 Medium
Unwritten field: org.apache.maven.plugins.shade.mojo.ArchiveFilter.includes CORRECTNESS UWF_UNWRITTEN_FIELD 42 Medium

org.apache.maven.plugins.shade.mojo.ArtifactSet

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugins.shade.mojo.ArtifactSet.excludes CORRECTNESS UWF_UNWRITTEN_FIELD 40 Medium
Unwritten field: org.apache.maven.plugins.shade.mojo.ArtifactSet.includes CORRECTNESS UWF_UNWRITTEN_FIELD 35 Medium

org.apache.maven.plugins.shade.mojo.HelpMojo

Bug Category Details Line Priority
org.apache.maven.plugins.shade.mojo.HelpMojo.build() may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 68 Medium

org.apache.maven.plugins.shade.mojo.ShadeMojo

Bug Category Details Line Priority
org.apache.maven.plugins.shade.mojo.ShadeMojo.replaceFile(File, File) forces garbage collection; extremely dubious except in benchmarking code PERFORMANCE DM_GC 635 High
org.apache.maven.plugins.shade.mojo.ShadeMojo.copyFiles(File, File) may fail to clean up java.io.OutputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 676 Medium
Exception is caught when Exception is not thrown in org.apache.maven.plugins.shade.mojo.ShadeMojo.execute() STYLE REC_CATCH_EXCEPTION 564 Medium
exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugins.shade.mojo.ShadeMojo.createDependencyReducedPom(Set) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 982 Medium

org.apache.maven.plugins.shade.pom.MavenJDOMWriter

Bug Category Details Line Priority
org.apache.maven.plugins.shade.pom.MavenJDOMWriter.insertAtPreferredLocation(Element, Element, MavenJDOMWriter$Counter) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 294 Medium

org.apache.maven.plugins.shade.pom.MavenJDOMWriter$Counter

Bug Category Details Line Priority
Should org.apache.maven.plugins.shade.pom.MavenJDOMWriter$Counter be a _static_ inner class? PERFORMANCE SIC_INNER_SHOULD_BE_STATIC 2251-2293 Medium

org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer.modifyOutputStream(JarOutputStream): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 217 High
Found reliance on default encoding in org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer.processResource(String, InputStream, List): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 125 High
Unwritten field: org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer.encoding CORRECTNESS UWF_UNWRITTEN_FIELD 119 Medium

org.apache.maven.plugins.shade.resource.AppendingTransformer

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugins.shade.resource.AppendingTransformer.resource CORRECTNESS UWF_UNWRITTEN_FIELD 45 Medium

org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer.resource CORRECTNESS UWF_UNWRITTEN_FIELD 43 Medium
Unwritten field: org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer.resources CORRECTNESS UWF_UNWRITTEN_FIELD 48 Medium

org.apache.maven.plugins.shade.resource.IncludeResourceTransformer

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugins.shade.resource.IncludeResourceTransformer.file CORRECTNESS UWF_UNWRITTEN_FIELD 57 Medium
Unwritten field: org.apache.maven.plugins.shade.resource.IncludeResourceTransformer.resource CORRECTNESS UWF_UNWRITTEN_FIELD 63 Medium

org.apache.maven.plugins.shade.resource.ManifestResourceTransformer

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugins.shade.resource.ManifestResourceTransformer.mainClass CORRECTNESS UWF_UNWRITTEN_FIELD 97 Medium
Unwritten field: org.apache.maven.plugins.shade.resource.ManifestResourceTransformer.manifestEntries CORRECTNESS UWF_UNWRITTEN_FIELD 102 Medium

org.apache.maven.plugins.shade.resource.XmlAppendingTransformer

Bug Category Details Line Priority
Unwritten field: org.apache.maven.plugins.shade.resource.XmlAppendingTransformer.resource CORRECTNESS UWF_UNWRITTEN_FIELD 59 Medium