Enable checkstyle rules to check names of static final members
Enable the rule that mandates use of uppercase and underscores
in the names of static final members.
Change-Id: Ica7f004601f9efd14d4b6a4450189a6eb8967f72
diff --git a/src/main/java/net/onrc/onos/core/datastore/topology/KVDevice.java b/src/main/java/net/onrc/onos/core/datastore/topology/KVDevice.java
index 8b1d8af..4b9d3c3 100644
--- a/src/main/java/net/onrc/onos/core/datastore/topology/KVDevice.java
+++ b/src/main/java/net/onrc/onos/core/datastore/topology/KVDevice.java
@@ -31,7 +31,7 @@
public class KVDevice extends KVObject {
private static final Logger log = LoggerFactory.getLogger(KVDevice.class);
- private static final ThreadLocal<Kryo> deviceKryo = new ThreadLocal<Kryo>() {
+ private static final ThreadLocal<Kryo> DEVICE_KRYO = new ThreadLocal<Kryo>() {
@Override
protected Kryo initialValue() {
Kryo kryo = new Kryo();
@@ -167,12 +167,12 @@
isPortIdsModified = false;
}
- return serializePropertyMap(deviceKryo.get(), map);
+ return serializePropertyMap(DEVICE_KRYO.get(), map);
}
@Override
protected boolean deserialize(final byte[] bytes) {
- boolean success = deserializePropertyMap(deviceKryo.get(), bytes);
+ boolean success = deserializePropertyMap(DEVICE_KRYO.get(), bytes);
if (!success) {
log.error("Deserializing Link: " + this + " failed.");
return false;