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/packet/BSNPROBE.java b/src/main/java/net/onrc/onos/core/packet/BSNPROBE.java
index c284aca..2f19d49 100644
--- a/src/main/java/net/onrc/onos/core/packet/BSNPROBE.java
+++ b/src/main/java/net/onrc/onos/core/packet/BSNPROBE.java
@@ -115,11 +115,13 @@
bb.put(this.dstMac);
bb.putLong(this.srcSwDpid);
bb.putInt(this.srcPortNo);
- if (payloadData != null)
+ if (payloadData != null) {
bb.put(payloadData);
+ }
- if (this.parent != null && this.parent instanceof BSN)
+ if (this.parent != null && this.parent instanceof BSN) {
((BSN) this.parent).setType(BSN.BSN_TYPE_PROBE);
+ }
return data;
}
@@ -163,17 +165,22 @@
*/
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj) {
return true;
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
return false;
- if (!(obj instanceof BSNPROBE))
+ }
+ if (!(obj instanceof BSNPROBE)) {
return false;
+ }
BSNPROBE other = (BSNPROBE) obj;
- if (!Arrays.equals(srcMac, other.srcMac))
+ if (!Arrays.equals(srcMac, other.srcMac)) {
return false;
- if (!Arrays.equals(dstMac, other.dstMac))
+ }
+ if (!Arrays.equals(dstMac, other.dstMac)) {
return false;
+ }
return (sequenceId == other.sequenceId &&
srcSwDpid == other.srcSwDpid &&
srcPortNo == other.srcPortNo