RFR: 8314877: Make fields final in 'java.net' package
Sergey Tsypanov
stsypanov at openjdk.org
Wed Aug 23 10:37:17 UTC 2023
On Mon, 21 Aug 2023 08:47:11 GMT, Andrey Turbanov <aturbanov at openjdk.org> 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
More information about the net-dev
mailing list