Skip to content

Commit 7551aa7

Browse files
committed
Remove incorrect "eql" override that uses value equality.
Fixes #2995.
1 parent 2215b6d commit 7551aa7

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

core/src/main/java/org/jruby/ext/ffi/AbstractMemory.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,7 @@ public boolean equals(Object obj) {
194194
public IRubyObject op_equal(ThreadContext context, IRubyObject obj) {
195195
return context.runtime.newBoolean(this.equals(obj));
196196
}
197-
@Override
198-
public final boolean eql(IRubyObject other) {
199-
return this.equals(other);
200-
}
197+
201198
/**
202199
* Calculates the hash code for this <tt>MemoryPointer</tt>
203200
*

0 commit comments

Comments
 (0)