diff options
author | Gary Gregory <ggregory@apache.org> | 2018-04-22 10:45:43 -0600 |
---|---|---|
committer | Gary Gregory <ggregory@apache.org> | 2018-04-22 10:45:43 -0600 |
commit | 58a8f12b443d7cbc16ec00b8841138ee55ee6630 (patch) | |
tree | e6f384478a3e2c2b9f08fb0a5d82b5684dc0d8e2 /src/main/java/org/apache/commons/lang3/SystemUtils.java | |
parent | 7c441e87cf371c642ad9d50bfb863ef145b917c7 (diff) | |
download | apache-commons-lang-58a8f12b443d7cbc16ec00b8841138ee55ee6630.tar.gz |
[LANG-1394] org.apache.commons.lang3.SystemUtils should not write to
System.err.
Diffstat (limited to 'src/main/java/org/apache/commons/lang3/SystemUtils.java')
-rw-r--r-- | src/main/java/org/apache/commons/lang3/SystemUtils.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/apache/commons/lang3/SystemUtils.java b/src/main/java/org/apache/commons/lang3/SystemUtils.java index 8a1ac9c6c..5e9e44f0b 100644 --- a/src/main/java/org/apache/commons/lang3/SystemUtils.java +++ b/src/main/java/org/apache/commons/lang3/SystemUtils.java @@ -1599,8 +1599,8 @@ public class SystemUtils { return System.getProperty(property); } catch (final SecurityException ex) { // we are not allowed to look at this property - System.err.println("Caught a SecurityException reading the system property '" + property - + "'; the SystemUtils property value will default to null."); + // System.err.println("Caught a SecurityException reading the system property '" + property + // + "'; the SystemUtils property value will default to null."); return null; } } @@ -1627,7 +1627,7 @@ public class SystemUtils { return value == null ? defaultValue : value; } catch (final SecurityException ex) { // we are not allowed to look at this property - System.err.println("Caught a SecurityException reading the environment variable '" + name + "'."); + // System.err.println("Caught a SecurityException reading the environment variable '" + name + "'."); return defaultValue; } } |