mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[log] Fix HashImpl equals
Don't rely on asString(): compare as byte arrays.
This commit is contained in:
committed by
Kirill Likhodedov
parent
5bd2cdd0f3
commit
f0a66f7c29
@@ -91,7 +91,7 @@ public class HashImpl implements Hash {
|
||||
if (this == o) return true;
|
||||
if (o == null || getClass() != o.getClass()) return false;
|
||||
HashImpl that = (HashImpl)o;
|
||||
return (myHashCode == that.myHashCode && asString().equals(that.asString()));
|
||||
return myHashCode == that.myHashCode && Arrays.equals(myData, that.myData);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user