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

org.apache.maven.plugins.pmd.AbstractPmdReport

Bug Category Details Line Priority
Changes to logger could be lost in org.apache.maven.plugins.pmd.AbstractPmdReport.setupPmdLogging() EXPERIMENTAL LG_LOST_LOGGER_DUE_TO_WEAK_REFERENCE 575 High
Field AbstractPmdReport.outputDirectory masks field in superclass org.apache.maven.reporting.AbstractMavenReport CORRECTNESS MF_CLASS_MASKS_FIELD Not available High
Field AbstractPmdReport.project masks field in superclass org.apache.maven.reporting.AbstractMavenReport CORRECTNESS MF_CLASS_MASKS_FIELD Not available High

org.apache.maven.plugins.pmd.CpdReport

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.pmd.CpdReport.writeNonHtml(CPD) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 388 Medium

org.apache.maven.plugins.pmd.CpdViolationCheckMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.pmd.CpdViolationCheckMojo.getErrorDetails(File): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 117 High

org.apache.maven.plugins.pmd.ExcludeDuplicationsFromFile

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.pmd.ExcludeDuplicationsFromFile.loadExcludeFromFailuresData(String): new java.io.FileReader(String) I18N DM_DEFAULT_ENCODING 125 High

org.apache.maven.plugins.pmd.PmdReport

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.pmd.PmdReport.executePmd(): new java.io.PrintStream(String) I18N DM_DEFAULT_ENCODING 498 High
Possible null pointer dereference in org.apache.maven.plugins.pmd.PmdReport.configureTypeResolution(PMDConfiguration) due to return value of called method STYLE NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE 772 Medium
Exception is caught when Exception is not thrown in org.apache.maven.plugins.pmd.PmdReport.configureTypeResolution(PMDConfiguration) STYLE REC_CATCH_EXCEPTION 796 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.pmd.PmdReport.writeNonHtml(Report) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 647 Medium

org.apache.maven.plugins.pmd.PmdViolationCheckMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.pmd.PmdViolationCheckMojo.getErrorDetails(File): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 127 High

org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader

Bug Category Details Line Priority
Dead store to parsed in org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.parseCpdErrorDetail(XmlPullParser, boolean) STYLE DLS_DEAD_LOCAL_STORE 633 High
Dead store to parsed in org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.parseCpdFile(XmlPullParser, boolean) STYLE DLS_DEAD_LOCAL_STORE 690 High
Boxing/unboxing to parse a primitive org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 392 High
Boxing/unboxing to parse a primitive org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 422 High
Redundant nullcheck of duplications, which is known to be non-null in org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.parseCpdErrorDetail(XmlPullParser, boolean) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 639 Medium
Redundant nullcheck of files, which is known to be non-null in org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.parseDuplication(XmlPullParser, boolean) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 740 Medium
Private method org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 177 Medium
Private method org.apache.maven.plugins.pmd.model.io.xpp3.CpdXpp3Reader.getDateValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 265 Medium

org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader

Bug Category Details Line Priority
Dead store to parsed in org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.parsePmdErrorDetail(XmlPullParser, boolean) STYLE DLS_DEAD_LOCAL_STORE 633 High
Dead store to parsed in org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.parsePmdFile(XmlPullParser, boolean) STYLE DLS_DEAD_LOCAL_STORE 686 High
Boxing/unboxing to parse a primitive org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 392 High
Boxing/unboxing to parse a primitive org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 422 High
Redundant nullcheck of files, which is known to be non-null in org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.parsePmdErrorDetail(XmlPullParser, boolean) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 639 Medium
Redundant nullcheck of violations, which is known to be non-null in org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.parsePmdFile(XmlPullParser, boolean) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 692 Medium
Private method org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 177 Medium
Private method org.apache.maven.plugins.pmd.model.io.xpp3.PmdXpp3Reader.getDateValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 265 Medium