Reuse constant.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/889232e2
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/889232e2
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/889232e2

Branch: refs/heads/LOG4J2-1431
Commit: 889232e28f3863d2a17392c06c1dd8cac68485de
Parents: 0404d58
Author: Gary Gregory <[email protected]>
Authored: Thu Aug 17 16:29:15 2017 -0600
Committer: Gary Gregory <[email protected]>
Committed: Thu Aug 17 16:29:15 2017 -0600

----------------------------------------------------------------------
 .../org/apache/logging/log4j/core/net/ssl/StoreConfiguration.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/889232e2/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/StoreConfiguration.java
----------------------------------------------------------------------
diff --git 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/StoreConfiguration.java
 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/StoreConfiguration.java
index ad0ed01..044e060 100644
--- 
a/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/StoreConfiguration.java
+++ 
b/log4j-core/src/main/java/org/apache/logging/log4j/core/net/ssl/StoreConfiguration.java
@@ -39,7 +39,7 @@ public class StoreConfiguration<T> {
      */
     public void clearSecrets() {
         this.location = null;
-        Arrays.fill(password, '\0');
+        Arrays.fill(password, Character.MIN_VALUE);
         this.password = null;
     }
 

Reply via email to