diff options
Diffstat (limited to 'java/lang/Long.java')
-rw-r--r-- | java/lang/Long.java | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/java/lang/Long.java b/java/lang/Long.java index c752957a..3f383b40 100644 --- a/java/lang/Long.java +++ b/java/lang/Long.java @@ -72,8 +72,6 @@ public final class Long extends Number implements Comparable<Long> { * @since JDK1.1 */ @SuppressWarnings("unchecked") - // Android-changed: Avoid use of removed Class.getPrimitiveClass method. - // public static final Class<Long> TYPE = (Class<Long>) Class.getPrimitiveClass("long"); public static final Class<Long> TYPE = (Class<Long>) long[].class.getComponentType(); /** @@ -359,8 +357,6 @@ public final class Long extends Number implements Comparable<Long> { char[] buf = new char[chars]; formatUnsignedLong(val, shift, buf, 0, chars); - // Android-changed: Use regular constructor instead of one which takes over "buf". - // return new String(buf, true); return new String(buf); } @@ -401,8 +397,6 @@ public final class Long extends Number implements Comparable<Long> { int size = (i < 0) ? stringSize(-i) + 1 : stringSize(i); char[] buf = new char[size]; getChars(i, size, buf); - // Android-changed: Use regular constructor instead of one which takes over "buf". - // return new String(buf, true); return new String(buf); } |