On Tue, 18 Oct 2022 13:46:06 GMT, Daniel Fuchs <[email protected]> wrote:

>> src/java.net.http/share/classes/jdk/internal/net/http/HttpClientImpl.java 
>> line 642:
>> 
>>> 640:         final long webSocketCount = pendingWebSocketCount.get();
>>> 641:         if (count == 0 && facadeRef.refersTo(null)) {
>>> 642:             selmgr.wakeupSelector();
>> 
>> I notice there is only one remaining reference to the facade() method. It 
>> might make sense to get rid of it and replace the call site with 
>> `facadeRef.refersTo`
>
> The only remaining call I see is here:
> 
>         return new BuilderImpl(this.facade(), proxySelector);
> 
> and that call needs to return the facade - we can't replace it with 
> `refersTo`. I'm not seeing any other calls.

Right, I mean to say `facadeRef.get()` there. It's not a big deal though.

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

PR: https://git.openjdk.org/jdk/pull/10659

Reply via email to