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/registry/ZookeeperRegistry.java b/src/main/java/net/onrc/onos/core/registry/ZookeeperRegistry.java
index d85faf2..b103d17 100755
--- a/src/main/java/net/onrc/onos/core/registry/ZookeeperRegistry.java
+++ b/src/main/java/net/onrc/onos/core/registry/ZookeeperRegistry.java
@@ -87,8 +87,8 @@
protected DistributedAtomicLong distributedIdCounter;
//Zookeeper performance-related configuration
- protected static final int sessionTimeout = 5000;
- protected static final int connectionTimeout = 7000;
+ protected static final int SESSION_TIMEOUT = 5000;
+ protected static final int CONNECTION_TIMEOUT = 7000;
//
// Unique ID generation state
@@ -569,7 +569,7 @@
RetryPolicy retryPolicy = new ExponentialBackoffRetry(1000, 3);
client = CuratorFrameworkFactory.newClient(this.connectionString,
- sessionTimeout, connectionTimeout, retryPolicy);
+ SESSION_TIMEOUT, CONNECTION_TIMEOUT, retryPolicy);
client.start();
client = client.usingNamespace(namespace);