Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions core/src/main/java/org/jruby/ext/set/RubySet.java
Original file line number Diff line number Diff line change
@@ -864,8 +864,6 @@ public IRubyObject op_equal(ThreadContext context, IRubyObject other) {
return context.runtime.getFalse();
}

// TODO Java (Collection) equals !

@JRubyMethod(name = "eql?")
public IRubyObject op_eql(ThreadContext context, IRubyObject other) {
if ( other instanceof RubySet ) {
@@ -886,15 +884,9 @@ public boolean eql(IRubyObject other) {
@Override
@JRubyMethod
public RubyFixnum hash() { // @hash.hash
return getRuntime().newFixnum(hashCode());
return hash.hash();
}

@Override
public int hashCode() {
return hash.hashCode();
}


@JRubyMethod(name = "classify")
public IRubyObject classify(ThreadContext context, final Block block) {
if ( ! block.isGiven() ) {

0 comments on commit f9d0d0f

Please sign in to comment.