Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Bug 1227: Removed #close() from Write Transactions.
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
action
/
ActionType.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/ActionType.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/ActionType.java
index 7da6fa911514d252bee6e647b5eae655420ff0cf..b491c5fcea2e4b53914102a91e88a76591ac5d22 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/ActionType.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/ActionType.java
@@
-75,4
+75,12
@@
public enum ActionType {
return true;
}
}
-}
\ No newline at end of file
+
+ public int calculateConsistentHashCode() {
+ if (this.id != null) {
+ return this.id.hashCode();
+ } else {
+ return 0;
+ }
+ }
+}