You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by ma...@apache.org on 2017/08/26 20:53:22 UTC

[04/50] logging-log4j2 git commit: Reuse constant.

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 <ga...@gmail.com>
Authored: Thu Aug 17 16:29:15 2017 -0600
Committer: Gary Gregory <ga...@gmail.com>
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;
     }