a miniscule optimization

git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@924 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
Tom Copeland
2002-09-12 03:46:09 +00:00
parent fdf15b9de8
commit ac61ff5d2d

View File

@ -68,7 +68,7 @@ public class Tile implements Serializable {
public boolean contains(TokenEntry candidate) {
for (Iterator i = tokens.iterator(); i.hasNext();) {
TokenEntry token = (TokenEntry)i.next();
if (candidate.getImage().equals(token.getImage()) && candidate.getIndex() == token.getIndex() && candidate.getTokenSrcID() == token.getTokenSrcID()) {
if (candidate.getIndex() == token.getIndex() && candidate.getTokenSrcID() == token.getTokenSrcID()) {
return true;
}
}