Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Revert "Checkstyle enforcer"
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
core
/
Config.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Config.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Config.java
index c585aa2c9f46a0e36768e65134d4cebf5fa756e1..c547c2bb455bd89f9d26b0c1483d9d6b3d8cc8d2 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Config.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Config.java
@@
-1,4
+1,3
@@
-
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
@@
-9,17
+8,13
@@
package org.opendaylight.controller.sal.core;
package org.opendaylight.controller.sal.core;
-import org.apache.commons.lang3.builder.HashCodeBuilder;
-import org.apache.commons.lang3.builder.EqualsBuilder;
-import org.apache.commons.lang3.builder.ReflectionToStringBuilder;
-
-import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
/**
* The class represents Admin Config status
/**
* The class represents Admin Config status
- *
- *
+ *
+ *
*/
@XmlRootElement
@SuppressWarnings("serial")
*/
@XmlRootElement
@SuppressWarnings("serial")
@@
-55,16
+50,28
@@
public class Config 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 + configValue;
+ 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;
+ Config other = (Config) obj;
+ if (configValue != other.configValue)
+ return false;
+ return true;
}
@Override
public String toString() {
}
@Override
public String toString() {
- return "Config["
+ ReflectionToStringBuilder.toString(this) +
"]";
+ return "Config["
+ configValue +
"]";
}
}
}
}