Android studio 2 complains about this comparison otherwise

here
Daniele Gobbetti 2016-01-28 11:12:28 +01:00
parent e7c93ca1c3
commit f9d2fddb7a
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ public class LimitedQueue {
public void remove(int id) {
for (Iterator<Pair> iter = list.iterator(); iter.hasNext(); ) {
Pair pair = iter.next();
if (pair.first == id) {
if (((int)pair.first) == id) {
iter.remove();
}
}