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/BasePacket.java b/src/main/java/net/onrc/onos/core/packet/BasePacket.java
index 3dd6339..780053e 100644
--- a/src/main/java/net/onrc/onos/core/packet/BasePacket.java
+++ b/src/main/java/net/onrc/onos/core/packet/BasePacket.java
@@ -61,8 +61,9 @@
@Override
public void resetChecksum() {
- if (this.parent != null)
+ if (this.parent != null) {
this.parent.resetChecksum();
+ }
}
/* (non-Javadoc)
@@ -81,18 +82,23 @@
*/
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj) {
return true;
- if (obj == null)
+ }
+ if (obj == null) {
return false;
- if (!(obj instanceof BasePacket))
+ }
+ if (!(obj instanceof BasePacket)) {
return false;
+ }
BasePacket other = (BasePacket) obj;
if (payload == null) {
- if (other.payload != null)
+ if (other.payload != null) {
return false;
- } else if (!payload.equals(other.payload))
+ }
+ } else if (!payload.equals(other.payload)) {
return false;
+ }
return true;
}