# | Line 504 | Line 504 | public class DelayQueue<E extends Delaye | |
---|---|---|
504 | // not just a .equals element. | |
505 | lock.lock(); | |
506 | try { | |
507 | < | for (Iterator it = q.iterator(); it.hasNext(); ) { |
507 | > | for (Iterator<E> it = q.iterator(); it.hasNext(); ) { |
508 | if (it.next() == x) { | |
509 | it.remove(); | |
510 | return; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |