Merge pull request #222 from roidelapluie/fix221
Fix #221 - Cast pair.first as integer
This commit is contained in:
commit
cdb25f3183
|
@ -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 ((Integer) pair.first == id) {
|
||||||
iter.remove();
|
iter.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue