diff options
Diffstat (limited to 'src/library/scala/runtime/BoxedBoolean.java')
-rw-r--r-- | src/library/scala/runtime/BoxedBoolean.java | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/src/library/scala/runtime/BoxedBoolean.java b/src/library/scala/runtime/BoxedBoolean.java index 3154328eaf..54a0fb8aa4 100644 --- a/src/library/scala/runtime/BoxedBoolean.java +++ b/src/library/scala/runtime/BoxedBoolean.java @@ -29,16 +29,8 @@ public final class BoxedBoolean public final boolean booleanValue() { return value; } - public final boolean $eq$eq(java.lang.Object other) { - return equals(other); - } - - public final boolean $bang$eq(java.lang.Object other) { - return !equals(other); - } - public boolean equals(java.lang.Object other) { - return other instanceof BoxedBoolean && value == ((BoxedBoolean) other).value; + return this == other; } public int hashCode() { @@ -48,4 +40,5 @@ public final class BoxedBoolean public String toString() { return String.valueOf(value); } + } |