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/linkdiscovery/Link.java b/src/main/java/net/onrc/onos/core/linkdiscovery/Link.java
index 254cc24..187e8b7 100755
--- a/src/main/java/net/onrc/onos/core/linkdiscovery/Link.java
+++ b/src/main/java/net/onrc/onos/core/linkdiscovery/Link.java
@@ -83,21 +83,28 @@
@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;
+ }
Link other = (Link) obj;
- if (dst != other.dst)
+ if (dst != other.dst) {
return false;
- if (dstPort != other.dstPort)
+ }
+ if (dstPort != other.dstPort) {
return false;
- if (src != other.src)
+ }
+ if (src != other.src) {
return false;
- if (srcPort != other.srcPort)
+ }
+ if (srcPort != other.srcPort) {
return false;
+ }
return true;
}