summaryrefslogtreecommitdiffstats
path: root/luni-kernel/src
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2010-03-11 15:19:22 -0800
committerElliott Hughes <enh@google.com>2010-03-11 15:19:22 -0800
commita0a4196cb15480959f053d0ebe6b412bd23c8170 (patch)
tree595b311b2d5094447f13cc1613daf72b7043b6bd /luni-kernel/src
parent720b81445bcc4d341c080365dcee65c8d8e1965c (diff)
downloadlibcore-a0a4196cb15480959f053d0ebe6b412bd23c8170.zip
libcore-a0a4196cb15480959f053d0ebe6b412bd23c8170.tar.gz
libcore-a0a4196cb15480959f053d0ebe6b412bd23c8170.tar.bz2
Fix all instances of "new Integer" (et cetera).
(This doesn't include libcore/xml/ because I don't want to get in the way there.) Change-Id: I46f638105d26e82d09128fca605117322229e146
Diffstat (limited to 'luni-kernel/src')
-rw-r--r--luni-kernel/src/main/java/java/lang/reflect/Array.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/luni-kernel/src/main/java/java/lang/reflect/Array.java b/luni-kernel/src/main/java/java/lang/reflect/Array.java
index d633e69..8c01054 100644
--- a/luni-kernel/src/main/java/java/lang/reflect/Array.java
+++ b/luni-kernel/src/main/java/java/lang/reflect/Array.java
@@ -76,19 +76,19 @@ public final class Array {
return ((boolean[]) array)[index] ? Boolean.TRUE : Boolean.FALSE;
if (array instanceof byte[])
- return new Byte(((byte[]) array)[index]);
+ return Byte.valueOf(((byte[]) array)[index]);
if (array instanceof char[])
- return new Character(((char[]) array)[index]);
+ return Character.valueOf(((char[]) array)[index]);
if (array instanceof short[])
- return new Short(((short[]) array)[index]);
+ return Short.valueOf(((short[]) array)[index]);
if (array instanceof int[])
- return new Integer(((int[]) array)[index]);
+ return Integer.valueOf(((int[]) array)[index]);
if (array instanceof long[])
- return new Long(((long[]) array)[index]);
+ return Long.valueOf(((long[]) array)[index]);
if (array instanceof float[])
return new Float(((float[]) array)[index]);