Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Simple changes to eliminate pmd warnings
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
core
/
Tables.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
index 156a0b8ee0225a3b719b7019976c6bc4556a55ba..b92c4b693c063bb6e9a093b84ee32c62de19f8fa 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Tables.java
@@
-22,7
+22,7
@@
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
public class Tables extends Property {
private static final long serialVersionUID = 1L;
@XmlRootElement
public class Tables extends Property {
private static final long serialVersionUID = 1L;
- @XmlElement
+ @XmlElement
(name="value")
private byte tablesValue;
public static final String TablesPropName = "tables";
private byte tablesValue;
public static final String TablesPropName = "tables";
@@
-45,6
+45,7
@@
public class Tables extends Property {
this.tablesValue = 0;
}
this.tablesValue = 0;
}
+ @Override
public Tables clone() {
return new Tables(this.tablesValue);
}
public Tables clone() {
return new Tables(this.tablesValue);
}
@@
-79,4
+80,9
@@
public class Tables extends Property {
public String toString() {
return "Tables[" + tablesValue + "]";
}
public String toString() {
return "Tables[" + tablesValue + "]";
}
+
+ @Override
+ public String getStringValue() {
+ return String.format("%02x", tablesValue);
+ }
}
}