[log] Fix HashImpl equals

Don't rely on asString(): compare as byte arrays.
This commit is contained in:
Konstantin Bulenkov
2014-03-11 15:11:33 +04:00
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