<i18n dev> RFR: 8277868: Use Comparable.compare() instead of surrogate code [v2]

Roger Riggs rriggs at openjdk.java.net
Tue Nov 30 21:06:09 UTC 2021


On Mon, 29 Nov 2021 08:18:47 GMT, Сергей Цыпанов <duke at openjdk.java.net> wrote:

>> Instead of something like
>> 
>> long x;
>> long y;
>> return (x < y) ? -1 : ((x == y) ? 0 : 1);
>> 
>> we can use `return Long.compare(x, y);`
>> 
>> All replacements are done with IDE.
>
> Сергей Цыпанов has updated the pull request incrementally with one additional commit since the last revision:
> 
>   8277868: Use Integer.signum() in BasicTableUI

The core-libs file changes look fine.
A 'client' reviewer should take a look too.

-------------

Marked as reviewed by rriggs (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/6575


More information about the i18n-dev mailing list