We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
RegexpCacheKey#equals
1 parent 0abaa1c commit 74f6147Copy full SHA for 74f6147
src/main/java/org/truffleruby/core/regexp/RegexpCacheKey.java
@@ -51,7 +51,7 @@ public int hashCode() {
51
public boolean equals(Object o) {
52
if (o instanceof RegexpCacheKey) {
53
final RegexpCacheKey other = (RegexpCacheKey) o;
54
- return rope.equals(other.rope) && encoding == other.encoding && joniOptions == other.joniOptions;
+ return encoding == other.encoding && joniOptions == other.joniOptions && rope.equals(other.getRope());
55
} else {
56
return false;
57
}
0 commit comments