RFR: 8314877: Make fields final in 'java.net' package [v2]

Andrey Turbanov aturbanov at openjdk.org
Wed Aug 23 11:04:16 UTC 2023


On Wed, 23 Aug 2023 10:40:49 GMT, Alan Bateman <alanb at openjdk.org> wrote:

>> Andrey Turbanov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   8314877: Make fields final in 'java.net' package
>>   
>>   make java.net.URL.handlers private
>
> src/java.base/share/classes/java/net/URL.java line 1592:
> 
>> 1590:      * A table of protocol handlers.
>> 1591:      */
>> 1592:     static final Hashtable<String,URLStreamHandler> handlers = new Hashtable<>();
> 
> Can you check if this can also be changed to be private?

sure. Done

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

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


More information about the net-dev mailing list