Fix a raw type warning 72/92872/1
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 2 Oct 2020 15:43:28 +0000 (17:43 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 2 Oct 2020 15:43:28 +0000 (17:43 +0200)
Use star-notation to fix a raw type warning.

Change-Id: I62500229200e27375f08e3e530b8ea992e2e8891
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
northbound-api/src/main/java/org/opendaylight/neutron/northbound/impl/PortStatusUpdateInitializer.java

index 324abf62d8f97eb9b412ad82c65424108de95001..b738ca6c6c9812c06a4aec1652d8748b35fc8058 100644 (file)
@@ -34,7 +34,7 @@ public class PortStatusUpdateInitializer {
     private final JSONRestconfService jsonRestconfService;
 
     @Inject
-    public PortStatusUpdateInitializer(JSONRestconfService jsonRestconfService,
+    public PortStatusUpdateInitializer(final JSONRestconfService jsonRestconfService,
                                        final NeutronNorthboundApiConfig neutronNorthboundApiConfig) {
         this.cfg = neutronNorthboundApiConfig;
         this.jsonRestconfService = jsonRestconfService;
@@ -66,7 +66,7 @@ public class PortStatusUpdateInitializer {
     private void streamSubscribe() {
         String identifier = "data-change-event-subscription/neutron:neutron/neutron:ports"
                                                                         + "/datastore=OPERATIONAL/scope=SUBTREE";
-        MultivaluedHashMap map = new MultivaluedHashMap<String, String>();
+        MultivaluedHashMap<String, String> map = new MultivaluedHashMap<>();
         map.add("odl-leaf-nodes-only", "true");
         Optional<String> res = null;
         try {