-
/*
* Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
*
*
* @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;
}
}
@Override
- public boolean equals(Object obj) {
- if (this == obj)
+ public boolean equals(final Object obj) {
+ if (this == obj) {
return true;
- if (obj == null)
+ }
+ if (obj == null) {
return false;
- if (getClass() != obj.getClass())
+ }
+ if (getClass() != obj.getClass()) {
return false;
+ }
DataLinkAddress other = (DataLinkAddress) obj;
if (name == null) {
- if (other.name != null)
+ if (other.name != null) {
return false;
- } else if (!name.equals(other.name))
+ }
+ } else if (!name.equals(other.name)) {
return false;
+ }
return true;
}