src/java.net.http/share/classes/jdk/internal/net/http/AuthenticationFilter.java
branchhttp-client-branch
changeset 56104 3420c1bdd254
parent 56103 d5f70938e399
child 56186 261b5b524dd3
equal deleted inserted replaced
56103:d5f70938e399 56104:3420c1bdd254
   335             return req;
   335             return req;
   336         }
   336         }
   337     }
   337     }
   338 
   338 
   339     // Use a WeakHashMap to make it possible for the HttpClient to
   339     // Use a WeakHashMap to make it possible for the HttpClient to
   340     // be garbaged collected when no longer referenced.
   340     // be garbage collected when no longer referenced.
   341     static final WeakHashMap<HttpClientImpl,Cache> caches = new WeakHashMap<>();
   341     static final WeakHashMap<HttpClientImpl,Cache> caches = new WeakHashMap<>();
   342 
   342 
   343     static synchronized Cache getCache(MultiExchange<?> exchange) {
   343     static synchronized Cache getCache(MultiExchange<?> exchange) {
   344         HttpClientImpl client = exchange.client();
   344         HttpClientImpl client = exchange.client();
   345         Cache c = caches.get(client);
   345         Cache c = caches.get(client);