On Tue, 18 Jul 2023 20:06:56 GMT, Andrey Turbanov <aturba...@openjdk.org> wrote:

> Found opportunity to make static `ServiceLoader.LANG_ACCESS` field `final`.

src/java.base/share/classes/java/util/ServiceLoader.java line 426:

> 424: 
> 425:     private static final JavaLangAccess LANG_ACCESS =
> 426:             SharedSecrets.getJavaLangAccess();

An oversight when SL was re-implemented in JDK 9. It will look better if you 
avoid the line break.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14926#discussion_r1267773370

Reply via email to