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 18 0 0

org.apache.maven.cli.CLIManager

Bug Category Details Line Priority
Found reliance on default encoding in org.apache.maven.cli.CLIManager.displayHelp(PrintStream): new java.io.PrintWriter(OutputStream) I18N DM_DEFAULT_ENCODING 169 High

org.apache.maven.cli.CLIReportingUtils

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.maven.cli.CLIReportingUtils.createMavenVersionString(Properties) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 99 High

org.apache.maven.cli.CleanArgument

Bug Category Details Line Priority
Useless condition: it's known that addedToBuffer == true at this point STYLE UC_USELESS_CONDITION 71 High

org.apache.maven.cli.CliRequest

Bug Category Details Line Priority
org.apache.maven.cli.CliRequest.getArgs() may expose internal representation by returning CliRequest.args MALICIOUS_CODE EI_EXPOSE_REP 66 Medium

org.apache.maven.cli.MavenCli

Bug Category Details Line Priority
Boxing/unboxing to parse a primitive org.apache.maven.cli.MavenCli.populateRequest(CliRequest, MavenExecutionRequest) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 1594 High
Found reliance on default encoding in org.apache.maven.cli.MavenCli.cli(CliRequest): new String(byte[]) I18N DM_DEFAULT_ENCODING 379 High
Found reliance on default encoding in org.apache.maven.cli.MavenCli.logging(CliRequest): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 528 High
Redundant nullcheck of basedirProperty, which is known to be non-null in org.apache.maven.cli.MavenCli.initialize(CliRequest) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 337 High
Format string should use %n rather than \n in org.apache.maven.cli.MavenCli.configure(CliRequest) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 1196 Medium
Format string should use %n rather than \n in org.apache.maven.cli.MavenCli.configure(CliRequest) BAD_PRACTICE VA_FORMAT_STRING_USES_NEWLINE 1188 Medium

org.apache.maven.cli.internal.extension.model.io.xpp3.CoreExtensionsXpp3Reader

Bug Category Details Line Priority
Dead store to parsed in org.apache.maven.cli.internal.extension.model.io.xpp3.CoreExtensionsXpp3Reader.parseCoreExtensions(XmlPullParser, boolean) STYLE DLS_DEAD_LOCAL_STORE 683 High
Boxing/unboxing to parse a primitive org.apache.maven.cli.internal.extension.model.io.xpp3.CoreExtensionsXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 391 High
Boxing/unboxing to parse a primitive org.apache.maven.cli.internal.extension.model.io.xpp3.CoreExtensionsXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 421 High
Redundant nullcheck of extensions, which is known to be non-null in org.apache.maven.cli.internal.extension.model.io.xpp3.CoreExtensionsXpp3Reader.parseCoreExtensions(XmlPullParser, boolean) STYLE RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE 689 Medium
Private method org.apache.maven.cli.internal.extension.model.io.xpp3.CoreExtensionsXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 176 Medium
Private method org.apache.maven.cli.internal.extension.model.io.xpp3.CoreExtensionsXpp3Reader.getDateValue(String, String, XmlPullParser) is never called PERFORMANCE UPM_UNCALLED_PRIVATE_METHOD 264 Medium

org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration

Bug Category Details Line Priority
org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration.supported is or uses a map or set of URLs, which can be a performance hog PERFORMANCE DMI_COLLECTION_OF_URLS Not available High
new org.apache.maven.cli.logging.impl.UnsupportedSlf4jBindingConfiguration(String, Map) is or uses a map or set of URLs, which can be a performance hog PERFORMANCE DMI_COLLECTION_OF_URLS 46-49 High