mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-19 13:02:30 +07:00
[platform] restoring TodoPattern#equals behavior (IJPL-160396)
... and updating `#hashCode` accordingly GitOrigin-RevId: df601980f02e2cbc2cd811a6f0fccb995d152a0d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
84f1257588
commit
bc04706496
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user