New JEP: Concise Method Bodies

Kevin Bourrillion kevinb at
Tue Oct 9 18:48:10 UTC 2018

On Tue, Oct 9, 2018 at 11:43 AM Dan Smith <daniel.smith at> wrote:

We have a rich API for building Comparators. I would expect most non-legacy
> implementations of Comparable to implement their 'compareTo' method by
> delegating to a Comparator.

To me, this pattern is the strongest use case for the entire feature.

Kevin Bourrillion | Java Librarian | Google, Inc. | kevinb at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amber-spec-experts mailing list