From 2c3be92eccd45ebad09d4fea7245f11a3c14f583 Mon Sep 17 00:00:00 2001 From: Munir Ahmad Date: Fri, 2 Mar 2018 19:47:30 -0500 Subject: Replace explicit type with dimond type Change-Id: I1dedb9ef1ca7b734e3cfc0a3a594d733dbd298d4 Issue-ID: SO-437 Signed-off-by: Munir Ahmad --- .../src/main/java/org/openecomp/mso/rest/RESTClient.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bpmn/MSORESTClient/src/main/java/org') diff --git a/bpmn/MSORESTClient/src/main/java/org/openecomp/mso/rest/RESTClient.java b/bpmn/MSORESTClient/src/main/java/org/openecomp/mso/rest/RESTClient.java index 6504615f7a..87f5786807 100644 --- a/bpmn/MSORESTClient/src/main/java/org/openecomp/mso/rest/RESTClient.java +++ b/bpmn/MSORESTClient/src/main/java/org/openecomp/mso/rest/RESTClient.java @@ -247,8 +247,8 @@ public class RESTClient { * @throws RESTException if unable to create a RESTClient */ public RESTClient(RESTConfig cfg) throws RESTException { - this.headers = new LinkedHashMap>(); - this.parameters = new LinkedHashMap>(); + this.headers = new LinkedHashMap<>(); + this.parameters = new LinkedHashMap<>(); this.URL = cfg.getURL(); this.proxyHost = cfg.getProxyHost(); this.proxyPort = cfg.getProxyPort(); @@ -266,7 +266,7 @@ public class RESTClient { */ public RESTClient addParameter(String name, String value) { if (!parameters.containsKey(name)) { - parameters.put(name, new ArrayList()); + parameters.put(name, new ArrayList<>()); } List values = parameters.get(name); @@ -306,7 +306,7 @@ public class RESTClient { */ public RESTClient addHeader(String name, String value) { if (!headers.containsKey(name)) { - headers.put(name, new ArrayList()); + headers.put(name, new ArrayList<>()); } List values = headers.get(name); -- cgit 1.2.3-korg