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/KVSwitch.java b/src/main/java/net/onrc/onos/core/datastore/topology/KVSwitch.java
index a9cc367..a38e17d 100644
--- a/src/main/java/net/onrc/onos/core/datastore/topology/KVSwitch.java
+++ b/src/main/java/net/onrc/onos/core/datastore/topology/KVSwitch.java
@@ -28,7 +28,7 @@
public class KVSwitch extends KVObject {
private static final Logger log = LoggerFactory.getLogger(KVSwitch.class);
- private static final ThreadLocal<Kryo> switchKryo = new ThreadLocal<Kryo>() {
+ private static final ThreadLocal<Kryo> SWITCH_KRYO = new ThreadLocal<Kryo>() {
@Override
protected Kryo initialValue() {
Kryo kryo = new Kryo();
@@ -140,7 +140,7 @@
sw.setStatus(status.ordinal());
if (!map.isEmpty()) {
- byte[] propMaps = serializePropertyMap(switchKryo.get(), map);
+ byte[] propMaps = serializePropertyMap(SWITCH_KRYO.get(), map);
sw.setValue(ByteString.copyFrom(propMaps));
}
@@ -154,7 +154,7 @@
SwitchProperty sw = SwitchProperty.parseFrom(bytes);
byte[] props = sw.getValue().toByteArray();
- success &= deserializePropertyMap(switchKryo.get(), props);
+ success &= deserializePropertyMap(SWITCH_KRYO.get(), props);
this.status = STATUS.values()[sw.getStatus()];
return success;