From: Robert Varga Date: Mon, 28 Sep 2020 10:50:29 +0000 (+0200) Subject: Fix raw type warnings in HwvtepHACache X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=6a1d7ad1be4f2519262b33889e16e7eb2d553fd4;p=genius.git Fix raw type warnings in HwvtepHACache ConcurrentMap should have proper types here, eliminating a few warnings. Change-Id: Id3fe51e3acc7b20317f0b2cfb97fcf555e7620b0 Signed-off-by: Robert Varga --- diff --git a/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/utils/hwvtep/HwvtepHACache.java b/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/utils/hwvtep/HwvtepHACache.java index 5a11e934a..fc5119a2b 100644 --- a/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/utils/hwvtep/HwvtepHACache.java +++ b/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/genius/utils/hwvtep/HwvtepHACache.java @@ -44,8 +44,8 @@ public class HwvtepHACache { private final ConcurrentHashMap connectedNodes = new ConcurrentHashMap<>(); private final LinkedBlockingQueue debugEvents = new LinkedBlockingQueue<>(MAX_EVENT_BUFFER_SIZE); - private Map, IpAddress> tepIps = new ConcurrentHashMap(); - private Map> nodeIds = new ConcurrentHashMap(); + private final Map, IpAddress> tepIps = new ConcurrentHashMap<>(); + private final Map> nodeIds = new ConcurrentHashMap<>(); public HwvtepHACache() { } @@ -67,11 +67,11 @@ public class HwvtepHACache { } public IpAddress getTepIpOfNode(InstanceIdentifier iid) { - return (IpAddress)this.tepIps.get(iid); + return this.tepIps.get(iid); } public InstanceIdentifier getNodeIdFromTepIp(IpAddress ipAddress) { - return (InstanceIdentifier)this.nodeIds.get(ipAddress); + return this.nodeIds.get(ipAddress); } public void setTepIpOfNode(InstanceIdentifier iid, IpAddress ipAddress) {