hg: lambda/lambda/jdk: 8009736: Comparator to allow narrowing type on combinator APIs

Dan Smith daniel.smith at oracle.com
Mon Mar 11 10:33:42 PDT 2013


To be consistent, Comparators.reverseOrder should be changed to match (thus avoiding an unchecked cast).  	Don't know what our compatibility policies are for existing generic methods, though...

—Dan

On Mar 9, 2013, at 11:27 PM, henry.jen at oracle.com wrote:

> Changeset: fb7b7275d220
> Author:    henryjen
> Date:      2013-03-08 21:54 -0800
> URL:       http://hg.openjdk.java.net/lambda/lambda/jdk/rev/fb7b7275d220
> 
> 8009736: Comparator to allow narrowing type on combinator APIs
> Reviewed-by:
> Summary: Allow to narrow return type, add javadoc return tag
> Allow key extract not limited to Comparable, but use a Comparator of key type.
> 
> ! src/share/classes/java/util/Comparator.java
> ! src/share/classes/java/util/Comparators.java
> 
> 



More information about the lambda-dev mailing list