|
@@ -103,7 +103,7 @@ public final class ProxyAuthenticator extends Authenticator {
|
103
|
103
|
replies.put(fullhost, pass);
|
104
|
104
|
|
105
|
105
|
// Store which servers are associated with which proxy
|
106
|
|
- final List<URI> servers = owners.containsKey(fullhost) ? owners.get(fullhost) : new ArrayList<URI>();
|
|
106
|
+ final List<URI> servers = owners.containsKey(fullhost) ? owners.get(fullhost) : new ArrayList<>();
|
107
|
107
|
owners.remove(fullhost);
|
108
|
108
|
servers.add(server);
|
109
|
109
|
owners.put(fullhost, servers);
|
|
@@ -131,7 +131,7 @@ public final class ProxyAuthenticator extends Authenticator {
|
131
|
131
|
final String fullhost = host.toLowerCase() + ':' + port;
|
132
|
132
|
|
133
|
133
|
// See if any other servers are associated with this proxy.
|
134
|
|
- final List<URI> servers = owners.containsKey(fullhost) ? owners.get(fullhost) : new ArrayList<URI>();
|
|
134
|
+ final List<URI> servers = owners.containsKey(fullhost) ? owners.get(fullhost) : new ArrayList<>();
|
135
|
135
|
servers.remove(server);
|
136
|
136
|
|
137
|
137
|
if (servers.isEmpty()) {
|