Replace the type specification in this constructor call with the diamond operator 48/85548/2
authorIsaac Manuel Raj <isaac.manuelraj@huawei.com>
Wed, 17 Apr 2019 09:02:40 +0000 (14:32 +0530)
committerIsaac Manuel Raj <isaac.manuelraj@huawei.com>
Wed, 17 Apr 2019 09:03:43 +0000 (09:03 +0000)
Replace the type specification in this constructor call with the diamond operator

Issue-ID: SO-1490

Change-Id: I6284c11a2608f6fdbf0fc9ad14b83f9d49d192e6
Signed-off-by: Isaac Manuel Raj <isaac.manuelraj@huawei.com>
openstack-client-connectors/http-connector/src/main/java/com/woorea/openstack/connector/HttpClientResponse.java

index 468e859..99421b8 100644 (file)
@@ -92,7 +92,7 @@ public class HttpClientResponse implements OpenStackResponse {
 
     @Override
     public Map<String, String> headers() {
-        Map<String, String> headers = new HashMap<String, String>();
+        Map<String, String> headers = new HashMap<>();
 
         Header responseHeaders[] = response.getAllHeaders();
         for (Header h : responseHeaders) {