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/core/util/FlowPath.java b/src/main/java/net/onrc/onos/core/util/FlowPath.java
index 0286bd2..2314dfc 100644
--- a/src/main/java/net/onrc/onos/core/util/FlowPath.java
+++ b/src/main/java/net/onrc/onos/core/util/FlowPath.java
@@ -64,8 +64,9 @@
*/
@JsonIgnore
public boolean isValidFlowId() {
- if (this.flowId == null)
+ if (this.flowId == null) {
return false;
+ }
return (this.flowId.isValid());
}
@@ -316,12 +317,15 @@
ret += " idleTimeout=" + this.idleTimeout;
ret += " hardTimeout=" + this.hardTimeout;
ret += " priority=" + this.priority;
- if (dataPath != null)
+ if (dataPath != null) {
ret += " dataPath=" + this.dataPath.toString();
- if (flowEntryMatch != null)
+ }
+ if (flowEntryMatch != null) {
ret += " flowEntryMatch=" + this.flowEntryMatch.toString();
- if (flowEntryActions != null)
+ }
+ if (flowEntryActions != null) {
ret += " flowEntryActions=" + this.flowEntryActions.toString();
+ }
ret += "]";
return ret;
}