Bug 5102 - NoSuchMethodError in EndpointManager 49/33549/3
authorTomas Cechvala <tcechval@cisco.com>
Tue, 26 Jan 2016 12:33:46 +0000 (13:33 +0100)
committerTomas Cechvala <tcechval@cisco.com>
Tue, 26 Jan 2016 14:20:55 +0000 (15:20 +0100)
- keySet method in ConcurrentHashMap changed in Java 8.
- error occurend when the code was built with Java 8 and
  ran on Java 7.
- fixed by compatible interface ConcurrentMap

Change-Id: I672f7102db8b9b3874d1f18419dd01bff3064704
Signed-off-by: Tomas Cechvala <tcechval@cisco.com>
renderers/ofoverlay/src/main/java/org/opendaylight/groupbasedpolicy/renderer/ofoverlay/endpoint/EndpointManager.java

index de7f63959b16f9bf743f6fb214c597d1df4ff6dc..15022b26f6edd37c6531711c3c2b41d60a0da146 100644 (file)
@@ -90,12 +90,12 @@ public class EndpointManager implements AutoCloseable {
 
     private static final Logger LOG = LoggerFactory.getLogger(EndpointManager.class);
     private final EndpointManagerListener endpointListener;
-    private final ConcurrentHashMap<EpKey, Endpoint> endpoints = new ConcurrentHashMap<>();
-    private final ConcurrentHashMap<EpKey, Endpoint> externalEndpointsWithoutLocation = new ConcurrentHashMap<>();
-    private final ConcurrentHashMap<NodeId, ConcurrentMap<EgKey, Set<EpKey>>> endpointsByGroupByNode =
+    private final ConcurrentMap<EpKey, Endpoint> endpoints = new ConcurrentHashMap<>();
+    private final ConcurrentMap<EpKey, Endpoint> externalEndpointsWithoutLocation = new ConcurrentHashMap<>();
+    private final ConcurrentMap<NodeId, ConcurrentMap<EgKey, Set<EpKey>>> endpointsByGroupByNode =
             new ConcurrentHashMap<>();
-    private final ConcurrentHashMap<NodeId, Set<EpKey>> endpointsByNode = new ConcurrentHashMap<>();
-    private final ConcurrentHashMap<EgKey, Set<EpKey>> endpointsByGroup = new ConcurrentHashMap<>();
+    private final ConcurrentMap<NodeId, Set<EpKey>> endpointsByNode = new ConcurrentHashMap<>();
+    private final ConcurrentMap<EgKey, Set<EpKey>> endpointsByGroup = new ConcurrentHashMap<>();
     private final ScheduledExecutorService executor;
     private final DataBroker dataProvider;
     private final ArpTasker arpTasker;