[platform] restoring TodoPattern#equals behavior (IJPL-160396)

... and updating `#hashCode` accordingly

GitOrigin-RevId: df601980f02e2cbc2cd811a6f0fccb995d152a0d
This commit is contained in:
Roman Shevchenko
2024-08-20 14:27:42 +02:00
committed by intellij-monorepo-bot
parent 84f1257588
commit bc04706496

View File

@@ -78,11 +78,11 @@ public final class TodoPattern implements Cloneable {
}
public boolean equals(Object o) {
return this == o || o instanceof TodoPattern that && myIndexPattern.equals(that.myIndexPattern);
return this == o || o instanceof TodoPattern that && myIndexPattern.equals(that.myIndexPattern) && myAttributes.equals(that.myAttributes);
}
public int hashCode() {
return myIndexPattern.hashCode();
return myIndexPattern.hashCode() * 31 + myAttributes.hashCode();
}
public IndexPattern getIndexPattern() {