Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Make use of NetUtils.getBroadcastMacAddr()
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
core
/
Tier.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tier.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tier.java
index ed4d02b2457da40b210ce05d77cebd76e55d6fac..33c87db650404f9ca6b79c69e8703844ff047172 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tier.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tier.java
@@
-9,6
+9,8
@@
package org.opendaylight.controller.sal.core;
package org.opendaylight.controller.sal.core;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@@
-18,9
+20,10
@@
import javax.xml.bind.annotation.XmlRootElement;
*
*/
@XmlRootElement
*
*/
@XmlRootElement
+@XmlAccessorType(XmlAccessType.NONE)
@SuppressWarnings("serial")
public class Tier extends Property {
@SuppressWarnings("serial")
public class Tier extends Property {
- @XmlElement
+ @XmlElement
(name="value")
private int tierValue;
public static final String TierPropName = "tier";
private int tierValue;
public static final String TierPropName = "tier";
@@
-37,6
+40,7
@@
public class Tier extends Property {
this.tierValue = 0;
}
this.tierValue = 0;
}
+ @Override
public Tier clone() {
return new Tier(this.tierValue);
}
public Tier clone() {
return new Tier(this.tierValue);
}
@@
-71,4
+75,9
@@
public class Tier extends Property {
public String toString() {
return "Tier[" + tierValue + "]";
}
public String toString() {
return "Tier[" + tierValue + "]";
}
+
+ @Override
+ public String getStringValue() {
+ return String.valueOf(tierValue);
+ }
}
}