Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix checkstyle if-statements must use braces hosttracker
[controller.git]
/
opendaylight
/
adsal
/
hosttracker
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
hosttracker
/
IPMacHostId.java
diff --git
a/opendaylight/adsal/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/IPMacHostId.java
b/opendaylight/adsal/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/IPMacHostId.java
index e10c5d1a78310e5bc1f81393a7899ec4aefab0c2..19f3f585b197cb7a81dea5804e5e0524c77d7a5d 100644
(file)
--- a/
opendaylight/adsal/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/IPMacHostId.java
+++ b/
opendaylight/adsal/hosttracker/api/src/main/java/org/opendaylight/controller/hosttracker/IPMacHostId.java
@@
-56,23
+56,30
@@
public class IPMacHostId implements IHostId, Serializable {
@Override
public boolean equals(Object obj) {
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj)
{
return true;
return true;
- if (obj == null)
+ }
+ if (obj == null) {
return false;
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
return false;
+ }
IPMacHostId other = (IPMacHostId) obj;
if (ipAddress == null) {
IPMacHostId other = (IPMacHostId) obj;
if (ipAddress == null) {
- if (other.ipAddress != null)
+ if (other.ipAddress != null)
{
return false;
return false;
- } else if (!ipAddress.equals(other.ipAddress))
+ }
+ } else if (!ipAddress.equals(other.ipAddress)) {
return false;
return false;
+ }
if (macAddr == null) {
if (macAddr == null) {
- if (other.macAddr != null)
+ if (other.macAddr != null)
{
return false;
return false;
- } else if (!macAddr.equals(other.macAddr))
+ }
+ } else if (!macAddr.equals(other.macAddr)) {
return false;
return false;
+ }
return true;
}
return true;
}