Sho SHIMIZU
Committed by Gerrit Code Review

Use diamond operator

Change-Id: I1417ca23080e4751cb391b3c9b52113795b58047
...@@ -569,7 +569,7 @@ public class GossipDeviceStore ...@@ -569,7 +569,7 @@ public class GossipDeviceStore
569 return descs.getPortDesc(input.portNumber()).value(); 569 return descs.getPortDesc(input.portNumber()).value();
570 } 570 }
571 }).toList(); 571 }).toList();
572 - merged = new Timestamped<List<PortDescription>>(mergedList, newTimestamp); 572 + merged = new Timestamped<>(mergedList, newTimestamp);
573 } 573 }
574 574
575 if (!deviceEvents.isEmpty()) { 575 if (!deviceEvents.isEmpty()) {
...@@ -718,7 +718,7 @@ public class GossipDeviceStore ...@@ -718,7 +718,7 @@ public class GossipDeviceStore
718 Map<ProviderId, DeviceDescriptions> r; 718 Map<ProviderId, DeviceDescriptions> r;
719 r = deviceDescs.get(deviceId); 719 r = deviceDescs.get(deviceId);
720 if (r == null) { 720 if (r == null) {
721 - r = new HashMap<ProviderId, DeviceDescriptions>(); 721 + r = new HashMap<>();
722 final Map<ProviderId, DeviceDescriptions> concurrentlyAdded; 722 final Map<ProviderId, DeviceDescriptions> concurrentlyAdded;
723 concurrentlyAdded = deviceDescs.putIfAbsent(deviceId, r); 723 concurrentlyAdded = deviceDescs.putIfAbsent(deviceId, r);
724 if (concurrentlyAdded != null) { 724 if (concurrentlyAdded != null) {
......