# | Line 664 | Line 664 | public abstract class AbstractMap<K,V> i | |
---|---|---|
664 | * | |
665 | * @param entry the entry to copy. | |
666 | */ | |
667 | < | public SimpleEntry(Entry<K,V> entry) { |
667 | > | public SimpleEntry(Entry<? extends K, ? extends V> entry) { |
668 | this.key = entry.getKey(); | |
669 | this.value = entry.getValue(); | |
670 | } | |
# | Line 754 | Line 754 | public abstract class AbstractMap<K,V> i | |
754 | * | |
755 | * @param entry the entry to copy. | |
756 | */ | |
757 | < | public SimpleImmutableEntry(Entry<K,V> entry) { |
757 | > | public SimpleImmutableEntry(Entry<? extends K, ? extends V> entry) { |
758 | this.key = entry.getKey(); | |
759 | this.value = entry.getValue(); | |
760 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |