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
47 14 0 0

org.apache.maven.plugins.enforcer.AbstractRequireFiles

Bug Category Details Line Priority
org.apache.maven.plugins.enforcer.AbstractRequireFiles.getFiles() may expose internal representation by returning AbstractRequireFiles.files MALICIOUS_CODE EI_EXPOSE_REP 155 Medium
org.apache.maven.plugins.enforcer.AbstractRequireFiles.setFiles(File[]) may expose internal representation by storing an externally mutable object into AbstractRequireFiles.files MALICIOUS_CODE EI_EXPOSE_REP2 160 Medium
Load of known null value in org.apache.maven.plugins.enforcer.AbstractRequireFiles.execute(EnforcerRuleHelper) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 77 Medium

org.apache.maven.plugins.enforcer.BanDuplicatePomDependencyVersions

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.enforcer.BanDuplicatePomDependencyVersions.execute(EnforcerRuleHelper): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 73 High

org.apache.maven.plugins.enforcer.RequirePluginVersions

Bug Category Details Line Priority
Load of known null value in org.apache.maven.plugins.enforcer.RequirePluginVersions.parsePluginString(String, String) STYLE NP_LOAD_OF_KNOWN_NULL_VALUE 476 Medium
Redundant nullcheck of currentPlugin, which is known to be non-null in org.apache.maven.plugins.enforcer.RequirePluginVersions.execute(EnforcerRuleHelper) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 296 Medium
Unread field: org.apache.maven.plugins.enforcer.RequirePluginVersions.remoteRepositories PERFORMANCE URF_UNREAD_FIELD 223 Medium
Unwritten field: org.apache.maven.plugins.enforcer.RequirePluginVersions.unCheckedPluginList CORRECTNESS UWF_UNWRITTEN_FIELD 235 Medium

org.apache.maven.plugins.enforcer.RequireUpperBoundDeps$DependencyNodeHopCountPair

Bug Category Details Line Priority
org.apache.maven.plugins.enforcer.RequireUpperBoundDeps$DependencyNodeHopCountPair defines compareTo(RequireUpperBoundDeps$DependencyNodeHopCountPair) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 389 Medium

org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils

Bug Category Details Line Priority
Unread field: org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils.factory PERFORMANCE URF_UNREAD_FIELD 77 Medium
Unread field: org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils.local PERFORMANCE URF_UNREAD_FIELD 79 Medium
Unread field: org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils.log PERFORMANCE URF_UNREAD_FIELD 81 Medium
Unread field: org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils.remoteRepositories PERFORMANCE URF_UNREAD_FIELD 80 Medium
Unread field: org.apache.maven.plugins.enforcer.utils.EnforcerRuleUtils.resolver PERFORMANCE URF_UNREAD_FIELD 78 Medium