summaryrefslogtreecommitdiff
path: root/java/lang
diff options
context:
space:
mode:
authorAndrew John Hughes <gnu_andrew@member.fsf.org>2008-04-21 10:37:45 +0000
committerAndrew John Hughes <gnu_andrew@member.fsf.org>2008-04-21 10:37:45 +0000
commit58f1aaef73a447a893cb2633bdc95ff97f0bc1cf (patch)
treea8d853b86a1992618c0532869c2238da46b99002 /java/lang
parentf17268df6a9989132ab9af3928b3bdc8cdfdd437 (diff)
downloadclasspath-58f1aaef73a447a893cb2633bdc95ff97f0bc1cf.tar.gz
2008-04-21 Andrew John Hughes <gnu_andrew@member.fsf.org>
* java/lang/Byte.java: (static): Use a short as the loop counter, not a byte as this can't exceed MAX_VALUE.
Diffstat (limited to 'java/lang')
-rw-r--r--java/lang/Byte.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/lang/Byte.java b/java/lang/Byte.java
index 35d5402c2..5c5e54213 100644
--- a/java/lang/Byte.java
+++ b/java/lang/Byte.java
@@ -90,8 +90,8 @@ public final class Byte extends Number implements Comparable<Byte>
private static Byte[] byteCache = new Byte[MAX_VALUE - MIN_VALUE + 1];
static
{
- for (byte i=MIN_VALUE; i <= MAX_VALUE; i++)
- byteCache[i - MIN_VALUE] = new Byte(i);
+ for (short i=MIN_VALUE; i <= MAX_VALUE; i++)
+ byteCache[i - MIN_VALUE] = new Byte((byte) i);
}