Enable checkstyle member and local variable checks
Enable checkstyle member and local variable name checks, and fix any violations that are detected.
Change-Id: I7524635cd39a9627b041e2ff6be169810f63913e
diff --git a/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java b/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java
index 59abceb..d8e8167 100644
--- a/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java
+++ b/src/main/java/net/onrc/onos/core/linkdiscovery/internal/LinkDiscoveryManager.java
@@ -155,14 +155,14 @@
// Link discovery task details.
protected SingletonTask discoveryTask;
- protected final int DISCOVERY_TASK_INTERVAL = 1;
- protected final int LINK_TIMEOUT = 35; // original 35 secs, aggressive 5 secs
- protected final int LLDP_TO_ALL_INTERVAL = 15; //original 15 seconds, aggressive 2 secs.
+ protected static final int DISCOVERY_TASK_INTERVAL = 1;
+ protected static final int LINK_TIMEOUT = 35; // original 35 secs, aggressive 5 secs
+ protected static final int LLDP_TO_ALL_INTERVAL = 15; //original 15 seconds, aggressive 2 secs.
protected long lldpClock = 0;
// This value is intentionally kept higher than LLDP_TO_ALL_INTERVAL.
// If we want to identify link failures faster, we could decrease this
// value to a small number, say 1 or 2 sec.
- protected final int LLDP_TO_KNOWN_INTERVAL = 20; // LLDP frequency for known links
+ protected static final int LLDP_TO_KNOWN_INTERVAL = 20; // LLDP frequency for known links
protected LLDPTLV controllerTLV;
protected ReentrantReadWriteLock lock;
@@ -255,8 +255,8 @@
* Quarantine task
*/
protected SingletonTask bddpTask;
- protected final int BDDP_TASK_INTERVAL = 100; // 100 ms.
- protected final int BDDP_TASK_SIZE = 5; // # of ports per iteration
+ protected static final int BDDP_TASK_INTERVAL = 100; // 100 ms.
+ protected static final int BDDP_TASK_SIZE = 5; // # of ports per iteration
/**
* Map of broadcast domain ports and the last time a BDDP was either