Enable checkstyle whitespace rules
Enable checkstyle whitespace rules and fix the violations that are reported.
Also suppressed checkstyle errors from Topology.java, which is machine generated.
Change-Id: I7c608321359f31b3b70c77a20b77e46306d4d2ec
diff --git a/src/main/java/net/onrc/onos/core/datastore/ramcloud/RCClient.java b/src/main/java/net/onrc/onos/core/datastore/ramcloud/RCClient.java
index 41fda9e..4d228ef 100644
--- a/src/main/java/net/onrc/onos/core/datastore/ramcloud/RCClient.java
+++ b/src/main/java/net/onrc/onos/core/datastore/ramcloud/RCClient.java
@@ -324,7 +324,7 @@
public boolean multiRead(final Collection<IMultiEntryOperation> ops) {
if (ops.size() <= MAX_MULTI_READS && ops instanceof ArrayList) {
- @SuppressWarnings({"unchecked", "rawtypes"})
+ @SuppressWarnings({ "unchecked", "rawtypes" })
final ArrayList<RCMultiEntryOperation> arrays = (ArrayList) ops;
return multiReadInternal(arrays);
}
@@ -357,7 +357,7 @@
public boolean multiWrite(final List<IMultiEntryOperation> ops) {
if (ops.size() <= MAX_MULTI_WRITES && ops instanceof ArrayList) {
- @SuppressWarnings({"unchecked", "rawtypes"})
+ @SuppressWarnings({ "unchecked", "rawtypes" })
final ArrayList<RCMultiEntryOperation> arrays = (ArrayList) ops;
return multiWriteInternal(arrays);
}
diff --git a/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java b/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java
index bacb5a3..d6cd25a 100755
--- a/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java
+++ b/src/main/java/net/onrc/onos/core/intent/runtime/PathCalcRuntimeModule.java
@@ -315,7 +315,7 @@
log.debug("Unmatched link events: {} events", unmatchedLinkEvents.size());
}
- if (rerouteAll) {//addedLinkEvents.size() > 0) { // ||
+ if (rerouteAll) { //addedLinkEvents.size() > 0) { // ||
// addedPortEvents.size() > 0 ||
// addedSwitchEvents.size() > 0) {
p.log("begin_getAllIntents");
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 884df0e..d85faf2 100755
--- a/src/main/java/net/onrc/onos/core/registry/ZookeeperRegistry.java
+++ b/src/main/java/net/onrc/onos/core/registry/ZookeeperRegistry.java
@@ -204,8 +204,6 @@
}
}
- ;
-
protected class ClusterLeaderListener implements LeaderLatchListener {
LeaderLatch latch;