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/topology/LinkEvent.java b/src/main/java/net/onrc/onos/core/topology/LinkEvent.java
index bf81f34..6f328f0 100644
--- a/src/main/java/net/onrc/onos/core/topology/LinkEvent.java
+++ b/src/main/java/net/onrc/onos/core/topology/LinkEvent.java
@@ -78,23 +78,30 @@
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj) {
return true;
- if (obj == null)
+ }
+ if (obj == null) {
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
+ }
LinkEvent other = (LinkEvent) obj;
if (dst == null) {
- if (other.dst != null)
+ if (other.dst != null) {
return false;
- } else if (!dst.equals(other.dst))
+ }
+ } else if (!dst.equals(other.dst)) {
return false;
+ }
if (src == null) {
- if (other.src != null)
+ if (other.src != null) {
return false;
- } else if (!src.equals(other.src))
+ }
+ } else if (!src.equals(other.src)) {
return false;
+ }
return true;
}
}