On Mon, 21 Aug 2023 08:47:11 GMT, Andrey Turbanov <[email protected]> wrote:

> A few classes in `java.net` package have non-final fields which could easily 
> be marked `final`.

src/java.base/share/classes/java/net/SocketPermission.java line 238:

> 236: 
> 237:     // true if the sun.net.trustNameService system property is set
> 238:     private static final boolean trustNameService = 
> GetBooleanAction.privilegedGetProperty("sun.net.trustNameService");

Nice!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/15358#discussion_r1301105001

Reply via email to