forked from phoedos/pmd
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:
@@ -68,7 +68,7 @@ public class Tile implements Serializable {
|
|||||||
public boolean contains(TokenEntry candidate) {
|
public boolean contains(TokenEntry candidate) {
|
||||||
for (Iterator i = tokens.iterator(); i.hasNext();) {
|
for (Iterator i = tokens.iterator(); i.hasNext();) {
|
||||||
TokenEntry token = (TokenEntry)i.next();
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user