<i18n dev> RFR: 8277868: Use Comparable.compare() instead of surrogate code [v3]
Сергей Цыпанов
duke at openjdk.java.net
Tue Dec 7 08:28:47 UTC 2021
> 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: Inline local var
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/6575/files
- new: https://git.openjdk.java.net/jdk/pull/6575/files/6744a562..1b3a5d4b
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=6575&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=6575&range=01-02
Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod
Patch: https://git.openjdk.java.net/jdk/pull/6575.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/6575/head:pull/6575
PR: https://git.openjdk.java.net/jdk/pull/6575
More information about the i18n-dev
mailing list