src/share/classes/java/util/TreeMap.java

Print this page
rev 7485 : 8009736: Comparator API cleanup
Reviewed-by:
Contributed-by: henry.jen@oracle.com

*** 2942,2950 **** } @Override public Comparator<? super Map.Entry<K, V>> getComparator() { return tree.comparator != null ? ! Comparators.byKey(tree.comparator) : null; } } } --- 2942,2950 ---- } @Override public Comparator<? super Map.Entry<K, V>> getComparator() { return tree.comparator != null ? ! Map.Entry.comparingByKey(tree.comparator) : null; } } }