Browse Source

false positives

master
Stefan Bodewig 8 years ago
parent
commit
121043fe59
7 changed files with 9 additions and 9 deletions
  1. +1
    -1
      src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java
  2. +1
    -1
      src/main/org/apache/tools/ant/ComponentHelper.java
  3. +1
    -1
      src/main/org/apache/tools/ant/Diagnostics.java
  4. +2
    -2
      src/main/org/apache/tools/ant/taskdefs/HostInfo.java
  5. +1
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCmd.java
  6. +2
    -2
      src/main/org/apache/tools/ant/util/ProxySetup.java
  7. +1
    -1
      src/main/org/apache/tools/ant/util/StringUtils.java

+ 1
- 1
src/main/org/apache/tools/ant/ArgumentProcessorRegistry.java View File

@@ -93,7 +93,7 @@ public class ArgumentProcessorRegistry {
+ SERVICE_ID + " (" + e.getClass().getName() + ": "
+ e.getMessage() + ")");
if (DEBUG) {
e.printStackTrace(System.err);
e.printStackTrace(System.err); //NOSONAR
}
}
}


+ 1
- 1
src/main/org/apache/tools/ant/ComponentHelper.java View File

@@ -971,7 +971,7 @@ public class ComponentHelper {
Throwable t = ex.getTargetException();
out.println("Cause: The constructor threw the exception");
out.println(t.toString());
t.printStackTrace(out);
t.printStackTrace(out); //NOSONAR
} catch (NoClassDefFoundError ncdfe) {
jars = true;
out.println("Cause: A class needed by class " + classname


+ 1
- 1
src/main/org/apache/tools/ant/Diagnostics.java View File

@@ -471,7 +471,7 @@ public final class Diagnostics {
// report error if something weird happens...this is diagnostic.
if (error != null) {
out.println("Error while running org.apache.env.Which");
error.printStackTrace();
error.printStackTrace(out); //NOSONAR
}
}



+ 2
- 2
src/main/org/apache/tools/ant/taskdefs/HostInfo.java View File

@@ -43,11 +43,11 @@ import org.apache.tools.ant.Task;
public class HostInfo extends Task {
private static final String DEF_REM_ADDR6 = "::";

private static final String DEF_REM_ADDR4 = "0.0.0.0";
private static final String DEF_REM_ADDR4 = "0.0.0.0"; //NOSONAR

private static final String DEF_LOCAL_ADDR6 = "::1";

private static final String DEF_LOCAL_ADDR4 = "127.0.0.1";
private static final String DEF_LOCAL_ADDR4 = "127.0.0.1"; //NOSONAR

private static final String DEF_LOCAL_NAME = "localhost";
private static final String DEF_DOMAIN = "localdomain";


+ 1
- 1
src/main/org/apache/tools/ant/taskdefs/optional/sos/SOSCmd.java View File

@@ -53,7 +53,7 @@ public interface SOSCmd {
/** The username option */
String FLAG_USERNAME = "-name";
/** The password option */
String FLAG_PASSWORD = "-password";
String FLAG_PASSWORD = "-password"; //NOSONAR
/** The log option */
String FLAG_COMMENT = "-log";
/** The workdir option */


+ 2
- 2
src/main/org/apache/tools/ant/util/ProxySetup.java View File

@@ -57,7 +57,7 @@ public class ProxySetup {
/** the http proxy username property */
public static final String HTTP_PROXY_USERNAME = "http.proxyUser";
/** the http proxy password property */
public static final String HTTP_PROXY_PASSWORD = "http.proxyPassword";
public static final String HTTP_PROXY_PASSWORD = "http.proxyPassword"; //NOSONAR
/** the socks proxy host property */
public static final String SOCKS_PROXY_HOST = "socksProxyHost";
/** the socks proxy port property */
@@ -65,7 +65,7 @@ public class ProxySetup {
/** the socks proxy username property */
public static final String SOCKS_PROXY_USERNAME = "java.net.socks.username";
/** the socks proxy password property */
public static final String SOCKS_PROXY_PASSWORD = "java.net.socks.password";
public static final String SOCKS_PROXY_PASSWORD = "java.net.socks.password"; //NOSONAR

/**
* create a proxy setup class bound to this project


+ 1
- 1
src/main/org/apache/tools/ant/util/StringUtils.java View File

@@ -93,7 +93,7 @@ public final class StringUtils {
public static String getStackTrace(Throwable t) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw, true);
t.printStackTrace(pw);
t.printStackTrace(pw); //NOSONAR
pw.flush();
pw.close();
return sw.toString();


Loading…
Cancel
Save