On Fri, 2 Aug 2024 16:14:41 GMT, Shaojin Wen <d...@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