<i18n dev> RFR: 8338409: Use record to simplify code
Chen Liang
liach at openjdk.org
Wed Aug 14 22:33:18 UTC 2024
On Fri, 2 Aug 2024 16:14:41 GMT, Shaojin Wen <duke at openjdk.org> wrote:
> j.u.Formatter$FixedString can be refactored to simplify the code using Record
src/java.base/share/classes/java/util/Formatter.java line 3024:
> 3022: }
> 3023:
> 3024: private static record FixedString(String s, int start, int end) implements FormatString {
Suggestion:
private record FixedString(String s, int start, int end) implements FormatString {
Records are always implicitly static.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/20443#discussion_r1702079768
More information about the i18n-dev
mailing list