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/KVPort.java b/src/main/java/net/onrc/onos/core/datastore/topology/KVPort.java
index 254e026..5721b78 100644
--- a/src/main/java/net/onrc/onos/core/datastore/topology/KVPort.java
+++ b/src/main/java/net/onrc/onos/core/datastore/topology/KVPort.java
@@ -29,7 +29,7 @@
public class KVPort extends KVObject {
private static final Logger log = LoggerFactory.getLogger(KVPort.class);
- private static final ThreadLocal<Kryo> portKryo = new ThreadLocal<Kryo>() {
+ private static final ThreadLocal<Kryo> PORT_KRYO = new ThreadLocal<Kryo>() {
@Override
protected Kryo initialValue() {
Kryo kryo = new Kryo();
@@ -171,7 +171,7 @@
port.setStatus(status.ordinal());
if (!map.isEmpty()) {
- byte[] propMaps = serializePropertyMap(portKryo.get(), map);
+ byte[] propMaps = serializePropertyMap(PORT_KRYO.get(), map);
port.setValue(ByteString.copyFrom(propMaps));
}
@@ -185,7 +185,7 @@
PortProperty port = PortProperty.parseFrom(bytes);
byte[] props = port.getValue().toByteArray();
- success &= deserializePropertyMap(portKryo.get(), props);
+ success &= deserializePropertyMap(PORT_KRYO.get(), props);
this.status = STATUS.values()[port.getStatus()];
return success;