Author: ggregory Date: Wed Aug 3 13:28:39 2011 New Revision: 1153479 URL: http://svn.apache.org/viewvc?rev=1153479&view=rev Log: Use more efficient Integer cache.
Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java?rev=1153479&r1=1153478&r2=1153479&view=diff ============================================================================== --- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java (original) +++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/builder/ToStringBuilderTest.java Wed Aug 3 13:28:39 2011 @@ -29,7 +29,7 @@ import junit.framework.TestCase; */ public class ToStringBuilderTest extends TestCase { - private final Integer base = new Integer(5); + private final Integer base = Integer.valueOf(5); private final String baseStr = base.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(base)); public ToStringBuilderTest(String name) {