forked from phoedos/pmd
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user