Skip to content

Commit f876e0f

Browse files
committedJul 31, 2018
dont use getPattern() in hashCode
1 parent 71763b8 commit f876e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎core/src/main/java/org/jruby/RubyMatchData.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ public IRubyObject eql_p(IRubyObject obj) {
797797
@Override
798798
public int hashCode() {
799799
check();
800-
return getPattern().hashCode() ^ str.hashCode();
800+
return regexp.pattern.hashCode() ^ str.hashCode();
801801
}
802802

803803
@JRubyMethod

0 commit comments

Comments
 (0)