Use more efficient Integer cache.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1153479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6869f0abad
commit
9d6f32538c
|
@ -29,7 +29,7 @@ import junit.framework.TestCase;
|
||||||
*/
|
*/
|
||||||
public class ToStringBuilderTest extends 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));
|
private final String baseStr = base.getClass().getName() + "@" + Integer.toHexString(System.identityHashCode(base));
|
||||||
|
|
||||||
public ToStringBuilderTest(String name) {
|
public ToStringBuilderTest(String name) {
|
||||||
|
|
Loading…
Reference in New Issue