Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Refactor ForwardingRulesmanager
[controller.git]
/
opendaylight
/
sal
/
api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
sal
/
action
/
SetDlType.java
diff --git
a/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.java
b/opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.java
index d15424ee15b9aabf9e0a493ce4a396a53c12fef1..225c4f7821895ff7cbabd35387b44aaac0c1290a 100644
(file)
--- a/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.java
+++ b/
opendaylight/sal/api/src/main/java/org/opendaylight/controller/sal/action/SetDlType.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,13
+21,14
@@
import org.opendaylight.controller.sal.utils.EtherTypes;
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
@XmlRootElement
@XmlAccessorType(XmlAccessType.NONE)
-
public class SetDlType extends Action {
public class SetDlType extends Action {
- @XmlElement
+ private static final long serialVersionUID = 1L;
+ @XmlElement
private int dlType;
/* Dummy constructor for JAXB */
private int dlType;
/* Dummy constructor for JAXB */
- private SetDlType () {
+ @SuppressWarnings("unused")
+ private SetDlType() {
}
public SetDlType(int dlType) {
}
public SetDlType(int dlType) {
@@
-54,15
+54,19
@@
public class SetDlType extends Action {
@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;
+ }
SetDlType other = (SetDlType) obj;
SetDlType other = (SetDlType) obj;
- if (dlType != other.dlType)
+ if (dlType != other.dlType)
{
return false;
return false;
+ }
return true;
}
return true;
}