diff --git a/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java b/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java index 1cd73476699..92888f7a59e 100644 --- a/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java +++ b/src/java.base/share/classes/java/util/concurrent/ConcurrentSkipListMap.java @@ -1712,9 +1712,8 @@ public class ConcurrentSkipListMap extends AbstractMap Map m = (Map) o; try { Comparator cmp = comparator; - @SuppressWarnings("unchecked") - Iterator> it = - (Iterator>)m.entrySet().iterator(); + // See JDK-8223553 for Iterator type wildcard rationale + Iterator> it = m.entrySet().iterator(); if (m instanceof SortedMap && ((SortedMap)m).comparator() == cmp) { Node b, n;