RFR: 8278263: Remove redundant synchronized from URLStreamHandler.openConnection methods

Daniel Fuchs dfuchs at openjdk.java.net
Thu Jan 27 15:13:35 UTC 2022


On Fri, 12 Nov 2021 19:35:10 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> All this Handler's are stateless and there is nothing to protect via synchronization.

There should be no code outside of the JDK extending those classes, especially with strong encapsulation in place.
I believe this is good to go!

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

PR: https://git.openjdk.java.net/jdk/pull/6373


More information about the net-dev mailing list