Code Review
/
controller.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
config-api: final parameters
[controller.git]
/
opendaylight
/
config
/
config-api
/
src
/
main
/
java
/
org
/
opendaylight
/
controller
/
config
/
api
/
IdentityAttributeRef.java
diff --git
a/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/IdentityAttributeRef.java
b/opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/IdentityAttributeRef.java
index 73737593cf6af9359660147a4fb44d145809f6b5..23d8691f54674f12cc01f51b38e45ef1e8a17b62 100644
(file)
--- a/
opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/IdentityAttributeRef.java
+++ b/
opendaylight/config/config-api/src/main/java/org/opendaylight/controller/config/api/IdentityAttributeRef.java
@@
-7,9
+7,8
@@
*/
package org.opendaylight.controller.config.api;
*/
package org.opendaylight.controller.config.api;
-import org.opendaylight.yangtools.yang.binding.BaseIdentity;
-
import java.beans.ConstructorProperties;
import java.beans.ConstructorProperties;
+import org.opendaylight.yangtools.yang.binding.BaseIdentity;
public final class IdentityAttributeRef {
public final class IdentityAttributeRef {
@@
-18,9
+17,10
@@
public final class IdentityAttributeRef {
private final String qNameOfIdentity;
@ConstructorProperties(QNAME_ATTR_NAME)
private final String qNameOfIdentity;
@ConstructorProperties(QNAME_ATTR_NAME)
- public IdentityAttributeRef(String qNameOfIdentity) {
- if (qNameOfIdentity == null)
+ public IdentityAttributeRef(
final
String qNameOfIdentity) {
+ if (qNameOfIdentity == null)
{
throw new NullPointerException("Parameter " + QNAME_ATTR_NAME + " is null");
throw new NullPointerException("Parameter " + QNAME_ATTR_NAME + " is null");
+ }
this.qNameOfIdentity = qNameOfIdentity;
}
this.qNameOfIdentity = qNameOfIdentity;
}
@@
-28,30
+28,36
@@
public final class IdentityAttributeRef {
return qNameOfIdentity;
}
return qNameOfIdentity;
}
- public <T extends BaseIdentity> Class<? extends T> resolveIdentity(
DependencyResolver resolver,
Class<T> baseIdentity) {
+ public <T extends BaseIdentity> Class<? extends T> resolveIdentity(
final DependencyResolver resolver, final
Class<T> baseIdentity) {
return resolver.resolveIdentity(this, baseIdentity);
}
return resolver.resolveIdentity(this, baseIdentity);
}
- public <T extends BaseIdentity> void validateIdentity(
DependencyResolver resolver, Class<T> baseIdentity,
JmxAttribute jmxAttribute) {
+ public <T extends BaseIdentity> void validateIdentity(
final DependencyResolver resolver, final Class<T> baseIdentity, final
JmxAttribute jmxAttribute) {
resolver.validateIdentity(this, baseIdentity, jmxAttribute);
}
@Override
public String toString() {
resolver.validateIdentity(this, baseIdentity, jmxAttribute);
}
@Override
public String toString() {
- final StringBu
ffer sb = new StringBuff
er("IdentityAttributeRef{");
+ final StringBu
ilder sb = new StringBuild
er("IdentityAttributeRef{");
sb.append("qNameOfIdentity='").append(qNameOfIdentity).append('\'');
sb.append('}');
return sb.toString();
}
@Override
sb.append("qNameOfIdentity='").append(qNameOfIdentity).append('\'');
sb.append('}');
return sb.toString();
}
@Override
- public boolean equals(Object o) {
- if (this == o) return true;
- if (!(o instanceof IdentityAttributeRef)) return false;
+ public boolean equals(final Object o) {
+ if (this == o) {
+ return true;
+ }
+ if (!(o instanceof IdentityAttributeRef)) {
+ return false;
+ }
IdentityAttributeRef that = (IdentityAttributeRef) o;
IdentityAttributeRef that = (IdentityAttributeRef) o;
- if (!qNameOfIdentity.equals(that.qNameOfIdentity)) return false;
+ if (!qNameOfIdentity.equals(that.qNameOfIdentity)) {
+ return false;
+ }
return true;
}
return true;
}