1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-11 12:39:26 +01:00

Android studio 2 complains about this comparison otherwise

This commit is contained in:
Daniele Gobbetti 2016-01-28 11:12:28 +01:00
parent e7c93ca1c3
commit f9d2fddb7a

View File

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