This is an automated email from the ASF dual-hosted git repository. rgoers pushed a commit to annotated tag v1_2_12_rc4 in repository https://gitbox.apache.org/repos/asf/logging-log4j1.git
commit 3cf3009c2b1701b7c8e0c1ccbda1a2021cda8ded Author: No Author <[email protected]> AuthorDate: Sat Aug 20 00:58:48 2005 +0000 This commit was manufactured by cvs2svn to create tag 'v1_2_12_rc4'. git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_12_rc4@311495 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/log4j/CategoryKey.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/java/org/apache/log4j/CategoryKey.java b/src/java/org/apache/log4j/CategoryKey.java index e6be750..e3fad5b 100644 --- a/src/java/org/apache/log4j/CategoryKey.java +++ b/src/java/org/apache/log4j/CategoryKey.java @@ -17,8 +17,7 @@ package org.apache.log4j; /** - CategoryKey is a wrapper for String that apparently accellerated - hash table lookup in early JVM's. + CategoryKey is heavily used internally to accelerate hash table searches. @author Ceki Gülcü */ class CategoryKey { @@ -27,7 +26,7 @@ class CategoryKey { int hashCache; CategoryKey(String name) { - this.name = name; + this.name = name.intern(); hashCache = name.hashCode(); } @@ -44,7 +43,7 @@ class CategoryKey { return true; if(rArg != null && CategoryKey.class == rArg.getClass()) - return name.equals(((CategoryKey)rArg ).name); + return name == ((CategoryKey)rArg ).name; else return false; }
