Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
liblldp: final parameters
[controller.git]
/
opendaylight
/
commons
/
liblldp
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
liblldp
/
DataLinkAddress.java
diff --git
a/opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/DataLinkAddress.java
b/opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/DataLinkAddress.java
index d617c05a5a941afe3ebb2f9b2484535835c0d6f7..a9bc910ffc4c4cb6e0199e0b251ef8b2571eef4f 100644
(file)
--- a/
opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/DataLinkAddress.java
+++ b/
opendaylight/commons/liblldp/src/main/java/org/opendaylight/controller/liblldp/DataLinkAddress.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.
*
@@
-38,10
+37,8
@@
abstract public class DataLinkAddress implements Serializable {
*
* @param name Create a new DataLink, not for general use but
* available only for sub classes
*
* @param name Create a new DataLink, not for general use but
* available only for sub classes
- *
- * @return constructed object
*/
*/
- protected DataLinkAddress(String name) {
+ protected DataLinkAddress(
final
String name) {
this.name = name;
}
this.name = name;
}
@@
-73,19
+70,24
@@
abstract public class DataLinkAddress implements Serializable {
}
@Override
}
@Override
- public boolean equals(Object obj) {
- if (this == obj)
+ public boolean equals(
final
Object 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;
+ }
DataLinkAddress other = (DataLinkAddress) obj;
if (name == null) {
DataLinkAddress other = (DataLinkAddress) obj;
if (name == null) {
- if (other.name != null)
+ if (other.name != null)
{
return false;
return false;
- } else if (!name.equals(other.name))
+ }
+ } else if (!name.equals(other.name)) {
return false;
return false;
+ }
return true;
}
return true;
}