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
39 24 0 68

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 94 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 452 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.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 657 High
Exception is caught when Exception is not thrown in org.apache.maven.plugins.shade.mojo.ShadeMojo.execute() STYLE REC_CATCH_EXCEPTION 544 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugins.shade.mojo.ShadeMojo.rewriteDependencyReducedPomIfWeHaveReduction(List, boolean, List, Model) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1020 Medium

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

Bug Category Details Line Priority
org.apache.maven.plugins.shade.pom.MavenJDOMWriter.insertAtPreferredLocation(Element, Element, Counter) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 282 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 213 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 121 High
Unwritten field: org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer.encoding CORRECTNESS UWF_UNWRITTEN_FIELD 115 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 66 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 95 Medium
Unwritten field: org.apache.maven.plugins.shade.resource.ManifestResourceTransformer.manifestEntries CORRECTNESS UWF_UNWRITTEN_FIELD 100 Medium

org.apache.maven.plugins.shade.resource.ServicesResourceTransformer

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.shade.resource.ServicesResourceTransformer.modifyOutputStream(JarOutputStream): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 135 High
Found reliance on default encoding in org.apache.maven.plugins.shade.resource.ServicesResourceTransformer.modifyOutputStream(JarOutputStream): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 134 High

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