checkstyle/pmd/findbugs patches

This commit is contained in:
Jeremy Long
2015-09-19 07:52:24 -04:00
parent afc1a9f077
commit 9203acff9c
5 changed files with 91 additions and 39 deletions

View File

@@ -327,8 +327,8 @@ public final class CliParser {
.desc("The path to Mono for .NET Assembly analysis on non-windows systems.")
.build();
final Option connectionTimeout = Option.builder(ARGUMENT.CONNECTION_TIMEOUT_SHORT).argName("timeout").hasArg().longOpt(ARGUMENT.CONNECTION_TIMEOUT)
.desc("The connection timeout (in milliseconds) to use when downloading resources.")
final Option connectionTimeout = Option.builder(ARGUMENT.CONNECTION_TIMEOUT_SHORT).argName("timeout").hasArg()
.longOpt(ARGUMENT.CONNECTION_TIMEOUT).desc("The connection timeout (in milliseconds) to use when downloading resources.")
.build();
final Option proxyServer = Option.builder().argName("server").hasArg().longOpt(ARGUMENT.PROXY_SERVER)
@@ -737,7 +737,7 @@ public final class CliParser {
* @return the application name.
*/
public String getProjectName() {
String appName = line.getOptionValue(ARGUMENT.APP_NAME);
final String appName = line.getOptionValue(ARGUMENT.APP_NAME);
String name = line.getOptionValue(ARGUMENT.PROJECT);
if (name == null && appName != null) {
name = appName;
@@ -1021,11 +1021,15 @@ public final class CliParser {
public static final String PROJECT = "project";
/**
* The long CLI argument name specifying the name of the application to be scanned.
*
* @deprecated project should be used instead
*/
@Deprecated
public static final String APP_NAME = "app";
/**
* The short CLI argument name specifying the name of the application to be scanned.
*
* @deprecated project should be used instead
*/
@Deprecated
public static final String APP_NAME_SHORT = "a";