Skip to content

Commit 3af5e1e

Browse files
committed
No need to test ScalaNumber on the right with this scheme.
1 parent 9146ca6 commit 3af5e1e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/library/scala/runtime/BoxesRunTime.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,6 @@ public static boolean equals2(Object x, Object y) {
132132
if (x instanceof scala.UInt || x instanceof scala.ULong ||
133133
x instanceof scala.UByte || x instanceof scala.UShort)
134134
return equalsUNumObject(x, y);
135-
if (y instanceof scala.math.ScalaNumber)
136-
return y.equals(x);
137135

138136
if (x == null)
139137
return y == null;

0 commit comments

Comments
 (0)