diff options
author | michelou <michelou@epfl.ch> | 2006-04-05 16:50:16 +0000 |
---|---|---|
committer | michelou <michelou@epfl.ch> | 2006-04-05 16:50:16 +0000 |
commit | e59dc955e36b6ab39ae245c8c4d0db7925c07c29 (patch) | |
tree | 61557e8556f73332870b85395f7751a54ef6eb69 /src/library | |
parent | 512b362d7361684cad87d9e899f234328ea0bb6e (diff) | |
download | scala-e59dc955e36b6ab39ae245c8c4d0db7925c07c29.tar.gz scala-e59dc955e36b6ab39ae245c8c4d0db7925c07c29.tar.bz2 scala-e59dc955e36b6ab39ae245c8c4d0db7925c07c29.zip |
corrected indentation in files scala/runtime/Bo...
corrected indentation in files scala/runtime/Boxed<pt>.java
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/runtime/BoxedChar.java | 14 | ||||
-rw-r--r-- | src/library/scala/runtime/BoxedLong.java | 6 | ||||
-rw-r--r-- | src/library/scala/runtime/BoxedShort.java | 14 |
3 files changed, 17 insertions, 17 deletions
diff --git a/src/library/scala/runtime/BoxedChar.java b/src/library/scala/runtime/BoxedChar.java index 4b1c4223e1..0a6d0b5582 100644 --- a/src/library/scala/runtime/BoxedChar.java +++ b/src/library/scala/runtime/BoxedChar.java @@ -21,13 +21,13 @@ public class BoxedChar extends BoxedNumber private static BoxedChar[] canonical = new BoxedChar[MaxHashed - MinHashed + 1]; static { - for (int i = MinHashed; i <= MaxHashed; i++) - canonical[i - MinHashed] = new BoxedChar((char)i); + for (int i = MinHashed; i <= MaxHashed; i++) + canonical[i - MinHashed] = new BoxedChar((char)i); } public static BoxedChar box(char value) { - if (MinHashed <= value && value <= MaxHashed) return canonical[value - MinHashed]; - else return new BoxedChar(value); + if (MinHashed <= value && value <= MaxHashed) return canonical[value - MinHashed]; + else return new BoxedChar(value); } public final char value; @@ -43,16 +43,16 @@ public class BoxedChar extends BoxedNumber public double doubleValue() { return (double)value; } public boolean equals(java.lang.Object other) { - return other instanceof BoxedNumber && + return other instanceof BoxedNumber && value == ((BoxedNumber) other).charValue(); } public int hashCode() { - return value; + return value; } public String toString() { - return String.valueOf(value); + return String.valueOf(value); } } diff --git a/src/library/scala/runtime/BoxedLong.java b/src/library/scala/runtime/BoxedLong.java index 79f4534b5a..680a50d402 100644 --- a/src/library/scala/runtime/BoxedLong.java +++ b/src/library/scala/runtime/BoxedLong.java @@ -17,7 +17,7 @@ public class BoxedLong extends BoxedNumber { public static BoxedLong box(long value) { - return new BoxedLong(value); + return new BoxedLong(value); } public final long value; @@ -38,8 +38,8 @@ public class BoxedLong extends BoxedNumber } public int hashCode() { - long bits = value; - return (int)(bits ^ (bits >>> 32)); + long bits = value; + return (int)(bits ^ (bits >>> 32)); } public String toString() { diff --git a/src/library/scala/runtime/BoxedShort.java b/src/library/scala/runtime/BoxedShort.java index 2bc114d589..89c79f4bde 100644 --- a/src/library/scala/runtime/BoxedShort.java +++ b/src/library/scala/runtime/BoxedShort.java @@ -21,13 +21,13 @@ public final class BoxedShort extends BoxedNumber private static BoxedShort[] canonical = new BoxedShort[MaxHashed - MinHashed + 1]; static { - for (int i = MinHashed; i <= MaxHashed; i++) - canonical[i - MinHashed] = new BoxedShort((short)i); + for (int i = MinHashed; i <= MaxHashed; i++) + canonical[i - MinHashed] = new BoxedShort((short)i); } public static BoxedShort box(short value) { - if (MinHashed <= value && value <= MaxHashed) return canonical[value - MinHashed]; - else return new BoxedShort(value); + if (MinHashed <= value && value <= MaxHashed) return canonical[value - MinHashed]; + else return new BoxedShort(value); } public final short value; @@ -43,16 +43,16 @@ public final class BoxedShort extends BoxedNumber public double doubleValue() { return (double)value; } public boolean equals(java.lang.Object other) { - return other instanceof BoxedNumber && + return other instanceof BoxedNumber && value == ((BoxedNumber) other).shortValue(); } public int hashCode() { - return value; + return value; } public String toString() { - return String.valueOf(value); + return String.valueOf(value); } } |