equal
deleted
inserted
replaced
1710 if (!(o instanceof Map)) |
1710 if (!(o instanceof Map)) |
1711 return false; |
1711 return false; |
1712 Map<?,?> m = (Map<?,?>) o; |
1712 Map<?,?> m = (Map<?,?>) o; |
1713 try { |
1713 try { |
1714 Comparator<? super K> cmp = comparator; |
1714 Comparator<? super K> cmp = comparator; |
1715 @SuppressWarnings("unchecked") |
1715 // See JDK-8223553 for Iterator type wildcard rationale |
1716 Iterator<Map.Entry<?,?>> it = |
1716 Iterator<? extends Map.Entry<?,?>> it = m.entrySet().iterator(); |
1717 (Iterator<Map.Entry<?,?>>)m.entrySet().iterator(); |
|
1718 if (m instanceof SortedMap && |
1717 if (m instanceof SortedMap && |
1719 ((SortedMap<?,?>)m).comparator() == cmp) { |
1718 ((SortedMap<?,?>)m).comparator() == cmp) { |
1720 Node<K,V> b, n; |
1719 Node<K,V> b, n; |
1721 if ((b = baseHead()) != null) { |
1720 if ((b = baseHead()) != null) { |
1722 while ((n = b.next) != null) { |
1721 while ((n = b.next) != null) { |