Improvements to equals from Sven Jacob

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4705 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2006-10-19 18:14:32 +00:00
parent ad0bec0843
commit 7b1671ca6d

View File

@ -71,6 +71,9 @@ public class TokenEntry implements Comparable {
}
public boolean equals(Object o) {
if (!(o instanceof TokenEntry)) {
return false;
}
TokenEntry other = (TokenEntry) o;
return other.hashCode == hashCode;
}