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
36 21 0 92

Files

Class Bugs
org.apache.maven.plugins.invoker.AbstractInvokerMojo 9
org.apache.maven.plugins.invoker.FileLogger 1
org.apache.maven.plugins.invoker.InstallMojo 1
org.apache.maven.plugins.invoker.InvokerReport 3
org.apache.maven.plugins.invoker.InvokerSession 1
org.apache.maven.plugins.invoker.MetadataUtils 1
org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Reader 4
org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Writer 1

org.apache.maven.plugins.invoker.AbstractInvokerMojo

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.invoker.AbstractInvokerMojo.writeMergedSettingsFile(Settings): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 1560 High
Found reliance on default encoding in org.apache.maven.plugins.invoker.AbstractInvokerMojo.writeSummaryFile(List): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 934 High
Possible null pointer dereference of setupBuildJobs in org.apache.maven.plugins.invoker.AbstractInvokerMojo.execute() on exception path CORRECTNESS NP_NULL_ON_SOME_PATH_EXCEPTION 813 Medium
Nullcheck of writer at line 2840 of value previously dereferenced in org.apache.maven.plugins.invoker.AbstractInvokerMojo.buildInterpolatedFile(File, File) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 2840 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.invoker.AbstractInvokerMojo.buildInterpolatedFile(File, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 2838 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.invoker.AbstractInvokerMojo.copyDirectoryStructure(File, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1240 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugins.invoker.AbstractInvokerMojo.deleteInterpolatedPomFile(File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1873 Medium
Exceptional return value of java.io.File.delete() ignored in org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuilds(File, List, int) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1447 Medium
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.invoker.AbstractInvokerMojo.runBuilds(File, List, int) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 1289 Medium

org.apache.maven.plugins.invoker.FileLogger

Bug Category Details Line Priority
The class name org.apache.maven.plugins.invoker.FileLogger shadows the simple name of the superclass org.apache.maven.shared.scriptinterpreter.FileLogger BAD_PRACTICE NM_SAME_SIMPLE_NAME_AS_SUPERCLASS 46-67 High

org.apache.maven.plugins.invoker.InstallMojo

Bug Category Details Line Priority
Exceptional return value of java.io.File.setLastModified(long) ignored in org.apache.maven.plugins.invoker.InstallMojo.copyFileIfDifferent(File, File) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 322 Medium

org.apache.maven.plugins.invoker.InvokerReport

Bug Category Details Line Priority
Field InvokerReport.outputDirectory masks field in superclass org.apache.maven.reporting.AbstractMavenReport CORRECTNESS MF_CLASS_MASKS_FIELD Not available High
Field InvokerReport.project masks field in superclass org.apache.maven.reporting.AbstractMavenReport CORRECTNESS MF_CLASS_MASKS_FIELD Not available High
Field InvokerReport.siteRenderer masks field in superclass org.apache.maven.reporting.AbstractMavenReport CORRECTNESS MF_CLASS_MASKS_FIELD Not available High

org.apache.maven.plugins.invoker.InvokerSession

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.plugins.invoker.InvokerSession.logFailedBuildLog(Log, boolean): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 239 High

org.apache.maven.plugins.invoker.MetadataUtils

Bug Category Details Line Priority
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.plugins.invoker.MetadataUtils.writeMetadata(File, Xpp3Dom) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 160 Medium

org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Reader

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 390 High
Boxing/unboxing to parse a primitive org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 420 High
Private method org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 175 Medium
Private method org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Reader.getDateValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 263 Medium

org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Writer

Bug Category Details Line Priority
Unread field: org.apache.maven.plugins.invoker.model.io.xpp3.BuildJobXpp3Writer.fileComment PERFORMANCE URF_UNREAD_FIELD 40 Medium