Skip to content

Commit 5dda587

Browse files
committed
deprecate scala.runtime.Statics.ioobe
1 parent d8a2440 commit 5dda587

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/src/scala/runtime/Statics.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ public static int anyHash(Object x) {
125125
private static int anyHashNumber(Number x) {
126126
if (x instanceof java.lang.Long)
127127
return longHash(((java.lang.Long)x).longValue());
128-
128+
129129
if (x instanceof java.lang.Double)
130130
return doubleHash(((java.lang.Double)x).doubleValue());
131-
131+
132132
if (x instanceof java.lang.Float)
133133
return floatHash(((java.lang.Float)x).floatValue());
134134

@@ -148,6 +148,7 @@ public static void releaseFence() throws Throwable {
148148
* Used by the synthetic `productElement` and `productElementName` methods in case classes.
149149
* Delegating the exception-throwing to this function reduces the bytecode size of the case class.
150150
*/
151+
@Deprecated
151152
public static final <T> T ioobe(int n) throws IndexOutOfBoundsException {
152153
throw new IndexOutOfBoundsException(String.valueOf(n));
153154
}

0 commit comments

Comments
 (0)