| @@ -93,7 +93,7 @@ public class ArgumentProcessorRegistry { | |||||
| + SERVICE_ID + " (" + e.getClass().getName() + ": " | + SERVICE_ID + " (" + e.getClass().getName() + ": " | ||||
| + e.getMessage() + ")"); | + e.getMessage() + ")"); | ||||
| if (DEBUG) { | if (DEBUG) { | ||||
| e.printStackTrace(System.err); | |||||
| e.printStackTrace(System.err); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| @@ -971,7 +971,7 @@ public class ComponentHelper { | |||||
| Throwable t = ex.getTargetException(); | Throwable t = ex.getTargetException(); | ||||
| out.println("Cause: The constructor threw the exception"); | out.println("Cause: The constructor threw the exception"); | ||||
| out.println(t.toString()); | out.println(t.toString()); | ||||
| t.printStackTrace(out); | |||||
| t.printStackTrace(out); //NOSONAR | |||||
| } catch (NoClassDefFoundError ncdfe) { | } catch (NoClassDefFoundError ncdfe) { | ||||
| jars = true; | jars = true; | ||||
| out.println("Cause: A class needed by class " + classname | out.println("Cause: A class needed by class " + classname | ||||
| @@ -471,7 +471,7 @@ public final class Diagnostics { | |||||
| // report error if something weird happens...this is diagnostic. | // report error if something weird happens...this is diagnostic. | ||||
| if (error != null) { | if (error != null) { | ||||
| out.println("Error while running org.apache.env.Which"); | out.println("Error while running org.apache.env.Which"); | ||||
| error.printStackTrace(); | |||||
| error.printStackTrace(out); //NOSONAR | |||||
| } | } | ||||
| } | } | ||||
| @@ -43,11 +43,11 @@ import org.apache.tools.ant.Task; | |||||
| public class HostInfo extends Task { | public class HostInfo extends Task { | ||||
| private static final String DEF_REM_ADDR6 = "::"; | 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_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_LOCAL_NAME = "localhost"; | ||||
| private static final String DEF_DOMAIN = "localdomain"; | private static final String DEF_DOMAIN = "localdomain"; | ||||
| @@ -53,7 +53,7 @@ public interface SOSCmd { | |||||
| /** The username option */ | /** The username option */ | ||||
| String FLAG_USERNAME = "-name"; | String FLAG_USERNAME = "-name"; | ||||
| /** The password option */ | /** The password option */ | ||||
| String FLAG_PASSWORD = "-password"; | |||||
| String FLAG_PASSWORD = "-password"; //NOSONAR | |||||
| /** The log option */ | /** The log option */ | ||||
| String FLAG_COMMENT = "-log"; | String FLAG_COMMENT = "-log"; | ||||
| /** The workdir option */ | /** The workdir option */ | ||||
| @@ -57,7 +57,7 @@ public class ProxySetup { | |||||
| /** the http proxy username property */ | /** the http proxy username property */ | ||||
| public static final String HTTP_PROXY_USERNAME = "http.proxyUser"; | public static final String HTTP_PROXY_USERNAME = "http.proxyUser"; | ||||
| /** the http proxy password property */ | /** 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 */ | /** the socks proxy host property */ | ||||
| public static final String SOCKS_PROXY_HOST = "socksProxyHost"; | public static final String SOCKS_PROXY_HOST = "socksProxyHost"; | ||||
| /** the socks proxy port property */ | /** the socks proxy port property */ | ||||
| @@ -65,7 +65,7 @@ public class ProxySetup { | |||||
| /** the socks proxy username property */ | /** the socks proxy username property */ | ||||
| public static final String SOCKS_PROXY_USERNAME = "java.net.socks.username"; | public static final String SOCKS_PROXY_USERNAME = "java.net.socks.username"; | ||||
| /** the socks proxy password property */ | /** 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 | * create a proxy setup class bound to this project | ||||
| @@ -93,7 +93,7 @@ public final class StringUtils { | |||||
| public static String getStackTrace(Throwable t) { | public static String getStackTrace(Throwable t) { | ||||
| StringWriter sw = new StringWriter(); | StringWriter sw = new StringWriter(); | ||||
| PrintWriter pw = new PrintWriter(sw, true); | PrintWriter pw = new PrintWriter(sw, true); | ||||
| t.printStackTrace(pw); | |||||
| t.printStackTrace(pw); //NOSONAR | |||||
| pw.flush(); | pw.flush(); | ||||
| pw.close(); | pw.close(); | ||||
| return sw.toString(); | return sw.toString(); | ||||