Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Bug 1805: Fixed 2 bugs in ICMP.computeChecksum()."
[controller.git]
/
opendaylight
/
md-sal
/
sal-remoterpc-connector
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
remote
/
rpc
/
registry
/
RoutingTable.java
diff --git
a/opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
b/opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
index c25aa523e2e0823769a28e9dc01b32da711b0ae5..d21d05d7fe9b02ae9a604a2f6c0567706ec2f68a 100644
(file)
--- a/
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
+++ b/
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/registry/RoutingTable.java
@@
-14,7
+14,6
@@
import org.opendaylight.controller.remote.rpc.registry.gossip.Copier;
import org.opendaylight.controller.sal.connector.api.RpcRouter;
import java.io.Serializable;
import org.opendaylight.controller.sal.connector.api.RpcRouter;
import java.io.Serializable;
-import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.HashMap;
import java.util.Map;
@@
-26,7
+25,7
@@
public class RoutingTable implements Copier<RoutingTable>, Serializable {
@Override
public RoutingTable copy() {
RoutingTable copy = new RoutingTable();
@Override
public RoutingTable copy() {
RoutingTable copy = new RoutingTable();
- copy.setTable(
Collections.unmodifiableMap
(table));
+ copy.setTable(
new HashMap<>
(table));
copy.setRouter(this.getRouter());
return copy;
copy.setRouter(this.getRouter());
return copy;
@@
-53,6
+52,9
@@
public class RoutingTable implements Copier<RoutingTable>, Serializable {
return table.containsKey(routeId);
}
return table.containsKey(routeId);
}
+ public Boolean isEmpty(){
+ return table.isEmpty();
+ }
///
/// Getter, Setters
///
///
/// Getter, Setters
///