SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.9.8

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
24 25 0 0

Files

Class Bugs
org.myjtools.jexten.plugin.ModuleLayerTree 1
org.myjtools.jexten.plugin.PluginEvent 2
org.myjtools.jexten.plugin.PluginFile 1
org.myjtools.jexten.plugin.PluginManager 2
org.myjtools.jexten.plugin.PluginManifestBuilder 8
org.myjtools.jexten.plugin.internal.FileUtil 4
org.myjtools.jexten.plugin.internal.Plugin 3
org.myjtools.jexten.plugin.internal.PluginBundleFile 4

org.myjtools.jexten.plugin.ModuleLayerTree

Bug Category Details Line Priority
org.myjtools.jexten.plugin.ModuleLayerTree.modules() may expose internal representation by returning ModuleLayerTree.modules MALICIOUS_CODE EI_EXPOSE_REP 72 Medium

org.myjtools.jexten.plugin.PluginEvent

Bug Category Details Line Priority
org.myjtools.jexten.plugin.PluginEvent.manifest() may expose internal representation by returning PluginEvent.manifest MALICIOUS_CODE EI_EXPOSE_REP 11 Medium
new org.myjtools.jexten.plugin.PluginEvent(PluginEvent$Type, PluginID, PluginManifest) may expose internal representation by storing an externally mutable object into PluginEvent.manifest MALICIOUS_CODE EI_EXPOSE_REP2 11 Medium

org.myjtools.jexten.plugin.PluginFile

Bug Category Details Line Priority
Found reliance on default encoding in org.myjtools.jexten.plugin.PluginFile.locatePluginManifest(Path): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 71 High

org.myjtools.jexten.plugin.PluginManager

Bug Category Details Line Priority
Exception thrown in class org.myjtools.jexten.plugin.PluginManager at new org.myjtools.jexten.plugin.PluginManager(String, ClassLoader, Path) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. BAD_PRACTICE CT_CONSTRUCTOR_THROW 54 Medium
Possible null pointer dereference in org.myjtools.jexten.plugin.PluginManager.installArtifact(String, Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 213 Medium

org.myjtools.jexten.plugin.PluginManifestBuilder

Bug Category Details Line Priority
org.myjtools.jexten.plugin.PluginManifestBuilder.artifacts() may expose internal representation by returning PluginManifestBuilder.artifacts MALICIOUS_CODE EI_EXPOSE_REP 141 Medium
org.myjtools.jexten.plugin.PluginManifestBuilder.checksums() may expose internal representation by returning PluginManifestBuilder.checksums MALICIOUS_CODE EI_EXPOSE_REP 153 Medium
org.myjtools.jexten.plugin.PluginManifestBuilder.extensionPoints() may expose internal representation by returning PluginManifestBuilder.extensionPoints MALICIOUS_CODE EI_EXPOSE_REP 149 Medium
org.myjtools.jexten.plugin.PluginManifestBuilder.extensions() may expose internal representation by returning PluginManifestBuilder.extensions MALICIOUS_CODE EI_EXPOSE_REP 145 Medium
org.myjtools.jexten.plugin.PluginManifestBuilder.artifacts(Map) may expose internal representation by storing an externally mutable object into PluginManifestBuilder.artifacts MALICIOUS_CODE EI_EXPOSE_REP2 73 Medium
org.myjtools.jexten.plugin.PluginManifestBuilder.checksums(Map) may expose internal representation by storing an externally mutable object into PluginManifestBuilder.checksums MALICIOUS_CODE EI_EXPOSE_REP2 88 Medium
org.myjtools.jexten.plugin.PluginManifestBuilder.extensionPoints(List) may expose internal representation by storing an externally mutable object into PluginManifestBuilder.extensionPoints MALICIOUS_CODE EI_EXPOSE_REP2 83 Medium
org.myjtools.jexten.plugin.PluginManifestBuilder.extensions(Map) may expose internal representation by storing an externally mutable object into PluginManifestBuilder.extensions MALICIOUS_CODE EI_EXPOSE_REP2 78 Medium

org.myjtools.jexten.plugin.internal.FileUtil

Bug Category Details Line Priority
Possible null pointer dereference in org.myjtools.jexten.plugin.internal.FileUtil.findArtifactName(Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 57 Medium
Possible null pointer dereference in org.myjtools.jexten.plugin.internal.FileUtil.findArtifactVersion(Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 65 Medium
Possible null pointer dereference in org.myjtools.jexten.plugin.internal.FileUtil.unzipFile(ZipFile, ZipEntry, Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 50 Medium
Possible null pointer dereference in org.myjtools.jexten.plugin.internal.FileUtil.unzipFile(ZipFile, ZipEntry, Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 51 Medium

org.myjtools.jexten.plugin.internal.Plugin

Bug Category Details Line Priority
org.myjtools.jexten.plugin.internal.Plugin.manifest() may expose internal representation by returning Plugin.manifest MALICIOUS_CODE EI_EXPOSE_REP 45 Medium
org.myjtools.jexten.plugin.internal.Plugin.moduleReferences() may expose internal representation by returning Plugin.moduleReferences MALICIOUS_CODE EI_EXPOSE_REP 93 Medium
new org.myjtools.jexten.plugin.internal.Plugin(PluginManifest, List) may expose internal representation by storing an externally mutable object into Plugin.manifest MALICIOUS_CODE EI_EXPOSE_REP2 30 Medium

org.myjtools.jexten.plugin.internal.PluginBundleFile

Bug Category Details Line Priority
Found reliance on default encoding in org.myjtools.jexten.plugin.internal.PluginBundleFile.assemble(PluginManifest, List): new java.io.OutputStreamWriter(OutputStream) I18N DM_DEFAULT_ENCODING 56 High
Possible null pointer dereference in org.myjtools.jexten.plugin.internal.PluginBundleFile.extract(ZipFile, ZipEntry, Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 85 Medium
Possible null pointer dereference in org.myjtools.jexten.plugin.internal.PluginBundleFile.extract(ZipFile, ZipEntry, Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 92 Medium
Possible null pointer dereference in org.myjtools.jexten.plugin.internal.PluginBundleFile.findArtifactGroup(Path) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 107 Medium