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/FlowEntryId.java b/src/main/java/net/onrc/onos/core/util/FlowEntryId.java
index 5b19e91..a46549f 100644
--- a/src/main/java/net/onrc/onos/core/util/FlowEntryId.java
+++ b/src/main/java/net/onrc/onos/core/util/FlowEntryId.java
@@ -46,12 +46,14 @@
// large unsigned hex long values.
//
char c = 0;
- if (value.length() > 2)
+ if (value.length() > 2) {
c = value.charAt(1);
- if ((c == 'x') || (c == 'X'))
+ }
+ if ((c == 'x') || (c == 'X')) {
this.value = new BigInteger(value.substring(2), 16).longValue();
- else
+ } else {
this.value = Long.decode(value);
+ }
}
/**