Browse Source

Very minor tidying.

pull/38/head
Chris Smith 9 years ago
parent
commit
ee05d03d36
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      common/src/com/dmdirc/parser/common/ProxyAuthenticator.java

+ 2
- 2
common/src/com/dmdirc/parser/common/ProxyAuthenticator.java View File

@@ -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()) {

Loading…
Cancel
Save