# | Line 1452 | Line 1452 | public class Collections { | |
---|---|---|
1452 | * when o is a Map.Entry, and calls o.setValue. | |
1453 | */ | |
1454 | public boolean containsAll(Collection<?> coll) { | |
1455 | < | Iterator<?> e = coll.iterator(); |
1456 | < | while (e.hasNext()) |
1457 | < | if (!contains(e.next())) // Invokes safe contains() above |
1455 | > | Iterator<?> it = coll.iterator(); |
1456 | > | while (it.hasNext()) |
1457 | > | if (!contains(it.next())) // Invokes safe contains() above |
1458 | return false; | |
1459 | return true; | |
1460 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |