# | Line 1683 | Line 1683 | public class ConcurrentSkipListMap<K,V> | |
---|---|---|
1683 | Map<?,?> m = (Map<?,?>) o; | |
1684 | try { | |
1685 | Comparator<? super K> cmp = comparator; | |
1686 | < | @SuppressWarnings("unchecked") |
1687 | < | Iterator<Map.Entry<?,?>> it = |
1688 | < | (Iterator<Map.Entry<?,?>>)m.entrySet().iterator(); |
1686 | > | // See JDK-8223553 for Iterator type wildcard rationale |
1687 | > | Iterator<? extends Map.Entry<?,?>> it = m.entrySet().iterator(); |
1688 | if (m instanceof SortedMap && | |
1689 | ((SortedMap<?,?>)m).comparator() == cmp) { | |
1690 | Node<K,V> b, n; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |