fix equals in sig

This commit is contained in:
momo 2015-10-19 09:53:28 -04:00
parent 88942afc85
commit 42c8e4bb73

View File

@ -224,7 +224,7 @@ class FileType {
public boolean equals(Object other) { public boolean equals(Object other) {
if (other != null && other instanceof Signature) { if (other != null && other instanceof Signature) {
Signature that = (Signature) other; Signature that = (Signature) other;
if(this.getSignatureBytes() == that.getSignatureBytes() && this.getOffset() == that.getOffset()) if(Arrays.equals(this.getSignatureBytes(), that.getSignatureBytes()) && this.getOffset() == that.getOffset())
return true; return true;
} }
return false; return false;