Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 52725 invoked from network); 5 Feb 2010 23:12:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Feb 2010 23:12:05 -0000 Received: (qmail 44066 invoked by uid 500); 5 Feb 2010 23:12:04 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 43988 invoked by uid 500); 5 Feb 2010 23:12:04 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 43979 invoked by uid 99); 5 Feb 2010 23:12:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 23:12:04 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Feb 2010 23:12:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E40402388980; Fri, 5 Feb 2010 23:11:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r907126 - /commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java Date: Fri, 05 Feb 2010 23:11:43 -0000 To: commits@commons.apache.org From: mbenson@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100205231143.E40402388980@eris.apache.org> Author: mbenson Date: Fri Feb 5 23:11:43 2010 New Revision: 907126 URL: http://svn.apache.org/viewvc?rev=907126&view=rev Log: promote uniformity between branches by using registry accessor Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java Modified: commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java?rev=907126&r1=907125&r2=907126&view=diff ============================================================================== --- commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java (original) +++ commons/proper/lang/trunk/src/main/java/org/apache/commons/lang3/builder/ToStringStyle.java Fri Feb 5 23:11:43 2010 @@ -173,12 +173,11 @@ */ static void register(Object value) { if (value != null) { - WeakHashMap m = REGISTRY.get(); + Map m = getRegistry(); if (m == null) { - m = new WeakHashMap(); - REGISTRY.set(m); + REGISTRY.set(new WeakHashMap()); } - m.put(value, null); + getRegistry().put(value, null); } } @@ -196,7 +195,7 @@ */ static void unregister(Object value) { if (value != null) { - WeakHashMap m = REGISTRY.get(); + Map m = getRegistry(); if (m != null) { m.remove(value); if (m.isEmpty()) {