X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=opendaylight%2Fconfig%2Fconfig-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fconfig%2Fapi%2FIdentityAttributeRef.java;h=e1462b6b703d046a7c46f72611840220f514ed8e;hb=4497e2212e73e13356447b9644bbdc935411949a;hp=73737593cf6af9359660147a4fb44d145809f6b5;hpb=065ef4acddbae75329e75562c533120d2d615efe;p=controller.git 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 73737593cf..e1462b6b70 100644 --- 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; -import org.opendaylight.yangtools.yang.binding.BaseIdentity; - import java.beans.ConstructorProperties; +import org.opendaylight.yangtools.yang.binding.BaseIdentity; public final class IdentityAttributeRef { @@ -19,8 +18,9 @@ public final class IdentityAttributeRef { @ConstructorProperties(QNAME_ATTR_NAME) public IdentityAttributeRef(String qNameOfIdentity) { - if (qNameOfIdentity == null) + if (qNameOfIdentity == null) { throw new NullPointerException("Parameter " + QNAME_ATTR_NAME + " is null"); + } this.qNameOfIdentity = qNameOfIdentity; } @@ -38,7 +38,7 @@ public final class IdentityAttributeRef { @Override public String toString() { - final StringBuffer sb = new StringBuffer("IdentityAttributeRef{"); + final StringBuilder sb = new StringBuilder("IdentityAttributeRef{"); sb.append("qNameOfIdentity='").append(qNameOfIdentity).append('\''); sb.append('}'); return sb.toString(); @@ -46,12 +46,18 @@ public final class IdentityAttributeRef { @Override public boolean equals(Object o) { - if (this == o) return true; - if (!(o instanceof IdentityAttributeRef)) return false; + if (this == o) { + return true; + } + if (!(o instanceof IdentityAttributeRef)) { + return false; + } IdentityAttributeRef that = (IdentityAttributeRef) o; - if (!qNameOfIdentity.equals(that.qNameOfIdentity)) return false; + if (!qNameOfIdentity.equals(that.qNameOfIdentity)) { + return false; + } return true; }