Enable checkstyle check for blocks without braces.
Enable the checkstyle rule to check for block statements
without curly braces and fix any violations it finds.
Change-Id: Id4c58cea26f0d9ce7ed78643a4943c042886a12d
diff --git a/src/main/java/net/onrc/onos/apps/forwarding/Forwarding.java b/src/main/java/net/onrc/onos/apps/forwarding/Forwarding.java
index 15aed60..d3db080 100644
--- a/src/main/java/net/onrc/onos/apps/forwarding/Forwarding.java
+++ b/src/main/java/net/onrc/onos/apps/forwarding/Forwarding.java
@@ -557,11 +557,13 @@
for (Entry<String, IntentState> entry : value.entrySet()) {
log.debug("path intent key {}, value {}", entry.getKey(), entry.getValue());
PathIntent pathIntent = (PathIntent) intentMap.getIntent(entry.getKey());
- if (pathIntent == null)
+ if (pathIntent == null) {
continue;
+ }
- if (!(pathIntent.getParentIntent() instanceof ShortestPathIntent))
+ if (!(pathIntent.getParentIntent() instanceof ShortestPathIntent)) {
continue;
+ }
IntentState state = entry.getValue();
switch (state) {