Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
BUG-2218: Keep existing link augmentations during discovery process
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
action
/
SetNwDst.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java
index bccca3f1f236b99aafee3a77d8803aad9111a284..db19cd6520879e7da302b43a1697172691f4248a 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetNwDst.java
@@
-1,4
+1,3
@@
-
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
@@
-22,12
+21,13
@@
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-
public class SetNwDst extends Action {
public class SetNwDst extends Action {
+ private static final long serialVersionUID = 1L;
InetAddress address;
/* Dummy constructor for JAXB */
InetAddress address;
/* Dummy constructor for JAXB */
- private SetNwDst () {
+ @SuppressWarnings("unused")
+ private SetNwDst() {
}
public SetNwDst(InetAddress address) {
}
public SetNwDst(InetAddress address) {
@@
-38,31
+38,36
@@
public class SetNwDst extends Action {
/**
* Returns the network address this action will set
*
/**
* Returns the network address this action will set
*
- * @return InetAddress
+ * @return InetAddress
*/
public InetAddress getAddress() {
return address;
}
*/
public InetAddress getAddress() {
return address;
}
-
- @XmlElement
(name=
"address")
+
+ @XmlElement
(name =
"address")
public String getAddressAsString() {
public String getAddressAsString() {
- return address.getHostAddress();
+
return address.getHostAddress();
}
@Override
public boolean equals(Object obj) {
}
@Override
public boolean equals(Object obj) {
- if (this == obj)
+ if (this == obj)
{
return true;
return true;
- if (!super.equals(obj))
+ }
+ if (!super.equals(obj)) {
return false;
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
return false;
+ }
SetNwDst other = (SetNwDst) obj;
if (address == null) {
SetNwDst other = (SetNwDst) obj;
if (address == null) {
- if (other.address != null)
+ if (other.address != null)
{
return false;
return false;
- } else if (!address.equals(other.address))
+ }
+ } else if (!address.equals(other.address)) {
return false;
return false;
+ }
return true;
}
return true;
}