summaryrefslogtreecommitdiff
path: root/java/lang
diff options
context:
space:
mode:
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);
}