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/hazelcast/HZTable.java b/src/main/java/net/onrc/onos/core/datastore/hazelcast/HZTable.java
index 6cba576..7b97ec0 100644
--- a/src/main/java/net/onrc/onos/core/datastore/hazelcast/HZTable.java
+++ b/src/main/java/net/onrc/onos/core/datastore/hazelcast/HZTable.java
@@ -26,7 +26,7 @@
private static final Logger log = LoggerFactory.getLogger(HZTable.class);
// not sure how strict this should be managed
- private static final AtomicLong initialVersion = new AtomicLong(HZClient.VERSION_NONEXISTENT);
+ private static final AtomicLong INITIAL_VERSION = new AtomicLong(HZClient.VERSION_NONEXISTENT);
/**
* generate a new initial version for an entry.
@@ -34,10 +34,10 @@
* @return initial value
*/
protected static long getInitialVersion() {
- long version = initialVersion.incrementAndGet();
+ long version = INITIAL_VERSION.incrementAndGet();
if (version == HZClient.VERSION_NONEXISTENT) {
// used up whole 64bit space?
- version = initialVersion.incrementAndGet();
+ version = INITIAL_VERSION.incrementAndGet();
}
return version;
}