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
/
Buffers.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java
index 991ed688f2eda4d630d63f15b965983ca07acc97..4c6e08102b214341f237e01d6280d375aaf30eeb 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/core/Buffers.java
@@
-21,16
+21,16
@@
import javax.xml.bind.annotation.XmlRootElement;
*/
@XmlRootElement
public class Buffers extends Property {
*/
@XmlRootElement
public class Buffers extends Property {
- private static final long serialVersionUID = 1L;
- @XmlElement
+
private static final long serialVersionUID = 1L;
+ @XmlElement
(name="value")
private int buffersValue;
private int buffersValue;
-
+
public static final String BuffersPropName = "buffers";
public static final String BuffersPropName = "buffers";
-
+
/**
* Construct a Buffers property
*
/**
* Construct a Buffers property
*
- * @param buffers the Buffers
+ * @param buffers the Buffers
* @return Constructed object
*/
public Buffers(int buffers) {
* @return Constructed object
*/
public Buffers(int buffers) {
@@
-46,6
+46,7
@@
public class Buffers extends Property {
this.buffersValue = 0;
}
this.buffersValue = 0;
}
+ @Override
public Buffers clone() {
return new Buffers(this.buffersValue);
}
public Buffers clone() {
return new Buffers(this.buffersValue);
}
@@
-53,7
+54,7
@@
public class Buffers extends Property {
public int getValue() {
return this.buffersValue;
}
public int getValue() {
return this.buffersValue;
}
-
+
@Override
public int hashCode() {
final int prime = 31;
@Override
public int hashCode() {
final int prime = 31;
@@
-80,4
+81,9
@@
public class Buffers extends Property {
public String toString() {
return "Buffers[" + buffersValue + "]";
}
public String toString() {
return "Buffers[" + buffersValue + "]";
}
+
+ @Override
+ public String getStringValue() {
+ return Integer.toHexString(buffersValue);
+ }
}
}