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 "Add IfNewHostNotify to DeviceManager"
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
core
/
State.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/State.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/State.java
index 4edc1f1d232b54055b70f0db0bedba83f16b0d2c..ba67e0d8213454e76d3fc8fc9760177745e0bec9 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/State.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/State.java
@@
-12,9
+12,6
@@
package org.opendaylight.controller.sal.core;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-
/**
* The class represents the State property of an Edge
*
/**
* The class represents the State property of an Edge
*
@@
-54,12
+51,24
@@
public class State extends Property {
@Override
public int hashCode() {
@Override
public int hashCode() {
- return HashCodeBuilder.reflectionHashCode(this);
+ final int prime = 31;
+ int result = super.hashCode();
+ result = prime * result + stateValue;
+ return result;
}
@Override
public boolean equals(Object obj) {
}
@Override
public boolean equals(Object obj) {
- return EqualsBuilder.reflectionEquals(this, obj);
+ if (this == obj)
+ return true;
+ if (!super.equals(obj))
+ return false;
+ if (getClass() != obj.getClass())
+ return false;
+ State other = (State) obj;
+ if (stateValue != other.stateValue)
+ return false;
+ return true;
}
@Override
}
@Override