RFR: 8304818: Prune HttpURLConnection cache when corresponding Authenticator is garbage collected [v9]

Michael McMahon michaelm at openjdk.org
Wed Apr 12 12:00:45 UTC 2023


On Wed, 12 Apr 2023 11:50:34 GMT, Daniel Fuchs <dfuchs at openjdk.org> wrote:

>> Michael McMahon has updated the pull request incrementally with two additional commits since the last revision:
>> 
>>  - error in test
>>  - Jai's review
>
> src/java.base/share/classes/sun/net/www/protocol/http/AuthCacheImpl.java line 126:
> 
>> 124:             }
>> 125:             return c;
>> 126:         }
> 
> Suggestion:
> 
>         return caches.computeIfAbsent(auth, (k) -> new AuthCacheImpl());

Suggestion committed. Thanks for the reviews!

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13159#discussion_r1164024474


More information about the net-dev mailing list