diff options
Diffstat (limited to 'cadi/client/src/main/java')
-rw-r--r-- | cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java | 2 | ||||
-rw-r--r-- | cadi/client/src/main/java/org/onap/aaf/cadi/locator/PropertyLocator.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java index df8cacf4..a3dac7da 100644 --- a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java +++ b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HClient.java @@ -93,7 +93,7 @@ public class HClient implements EClient<HttpURLConnection> { @Override public void addHeader(String tag, String value) { if (headers == null) - headers = new ArrayList<Header>(); + headers = new ArrayList<>(); headers.add(new Header(tag, value)); } diff --git a/cadi/client/src/main/java/org/onap/aaf/cadi/locator/PropertyLocator.java b/cadi/client/src/main/java/org/onap/aaf/cadi/locator/PropertyLocator.java index 4591122c..b75e8bc2 100644 --- a/cadi/client/src/main/java/org/onap/aaf/cadi/locator/PropertyLocator.java +++ b/cadi/client/src/main/java/org/onap/aaf/cadi/locator/PropertyLocator.java @@ -65,7 +65,7 @@ public class PropertyLocator implements Locator<URI> { throw new LocatorException("No Location List given for PropertyLocator"); } String[] locarray = Split.split(',',locList); - List<URI> uriList = new ArrayList<URI>(); + List<URI> uriList = new ArrayList<>(); random = new SecureRandom(); @@ -177,7 +177,7 @@ public class PropertyLocator implements Locator<URI> { public synchronized boolean refresh() { if(System.currentTimeMillis()>lastRefreshed) { // Build up list - List<URI> resolve = new ArrayList<URI>(); + List<URI> resolve = new ArrayList<>(); String realname; for(int i = 0; i < orig.length ; ++i) { try { |