mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
CharSequenceSubSequence fix stupid equals optimisation error
This commit is contained in:
@@ -75,7 +75,7 @@ public class CharSequenceSubSequence implements CharSequence, CharArrayExternali
|
||||
@Override
|
||||
public boolean equals(Object o) {
|
||||
if (this == o) return true;
|
||||
if (o instanceof CharSequenceSubSequence) return hashCode() == o.hashCode();
|
||||
if (o instanceof CharSequenceSubSequence && hashCode() != o.hashCode()) return false;
|
||||
if (o == null || !(o instanceof CharSequence)) return false;
|
||||
return StringUtil.equals(this, (CharSequence)o);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user