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/LinkInfo.java b/src/main/java/net/onrc/onos/core/linkdiscovery/LinkInfo.java
index 89e9a19..f757360 100644
--- a/src/main/java/net/onrc/onos/core/linkdiscovery/LinkInfo.java
+++ b/src/main/java/net/onrc/onos/core/linkdiscovery/LinkInfo.java
@@ -126,43 +126,56 @@
*/
@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 LinkInfo))
+ }
+ if (!(obj instanceof LinkInfo)) {
return false;
+ }
LinkInfo other = (LinkInfo) obj;
if (firstSeenTime == null) {
- if (other.firstSeenTime != null)
+ if (other.firstSeenTime != null) {
return false;
- } else if (!firstSeenTime.equals(other.firstSeenTime))
+ }
+ } else if (!firstSeenTime.equals(other.firstSeenTime)) {
return false;
+ }
if (lastLldpReceivedTime == null) {
- if (other.lastLldpReceivedTime != null)
+ if (other.lastLldpReceivedTime != null) {
return false;
- } else if (!lastLldpReceivedTime.equals(other.lastLldpReceivedTime))
+ }
+ } else if (!lastLldpReceivedTime.equals(other.lastLldpReceivedTime)) {
return false;
+ }
if (lastBddpReceivedTime == null) {
- if (other.lastBddpReceivedTime != null)
+ if (other.lastBddpReceivedTime != null) {
return false;
- } else if (!lastBddpReceivedTime.equals(other.lastBddpReceivedTime))
+ }
+ } else if (!lastBddpReceivedTime.equals(other.lastBddpReceivedTime)) {
return false;
+ }
if (srcPortState == null) {
- if (other.srcPortState != null)
+ if (other.srcPortState != null) {
return false;
- } else if (!srcPortState.equals(other.srcPortState))
+ }
+ } else if (!srcPortState.equals(other.srcPortState)) {
return false;
+ }
if (dstPortState == null) {
- if (other.dstPortState != null)
+ if (other.dstPortState != null) {
return false;
- } else if (!dstPortState.equals(other.dstPortState))
+ }
+ } else if (!dstPortState.equals(other.dstPortState)) {
return false;
+ }
return true;
}