deleting of rules

This commit is contained in:
Zlatin Balevsky
2019-07-09 20:50:07 +01:00
parent 72b81eb886
commit ce660cefe9
4 changed files with 45 additions and 3 deletions

View File

@@ -22,7 +22,7 @@ class RegexMatcher extends Matcher {
@Override
public int hashCode() {
pattern.hashCode()
pattern.pattern().hashCode()
}
@Override
@@ -30,6 +30,6 @@ class RegexMatcher extends Matcher {
if (!(o instanceof RegexMatcher))
return false
RegexMatcher other = (RegexMatcher) o
pattern.equals(other.pattern)
pattern.pattern() == other.pattern.pattern()
}
}