X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fsal%2Fyang-prototype%2Fcode-generator%2Fyang-model-parser-impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fyang%2Fparser%2Fbuilder%2Fimpl%2FAugmentationSchemaBuilderImpl.java;h=70079b39aa37a0f7d1bb114f6c22561dc6ed11d1;hb=b4f7106f7b4267b51701eff2d3499c0e12423048;hp=0473726168dcc0af2db6e0cf3cfa750b796a89ad;hpb=06aa5ce746e29a3760688b2ef2817f50bec5ea7a;p=controller.git diff --git a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/parser/builder/impl/AugmentationSchemaBuilderImpl.java b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/parser/builder/impl/AugmentationSchemaBuilderImpl.java index 0473726168..70079b39aa 100644 --- a/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/parser/builder/impl/AugmentationSchemaBuilderImpl.java +++ b/opendaylight/sal/yang-prototype/code-generator/yang-model-parser-impl/src/main/java/org/opendaylight/controller/yang/parser/builder/impl/AugmentationSchemaBuilderImpl.java @@ -188,13 +188,10 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder int result = 1; result = prime * result + ((augmentTargetStr == null) ? 0 : augmentTargetStr.hashCode()); - result = prime * result - + ((childNodes == null) ? 0 : childNodes.hashCode()); - result = prime * result - + ((groupings == null) ? 0 : groupings.hashCode()); - result = prime * result + ((usesNodes == null) ? 0 : usesNodes.hashCode()); result = prime * result + ((whenCondition == null) ? 0 : whenCondition.hashCode()); + result = prime * result + + ((childNodes == null) ? 0 : childNodes.hashCode()); return result; } @@ -217,32 +214,18 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder } else if (!augmentTargetStr.equals(other.augmentTargetStr)) { return false; } - if (childNodes == null) { - if (other.childNodes != null) { - return false; - } - } else if (!childNodes.equals(other.childNodes)) { - return false; - } - if (groupings == null) { - if (other.groupings != null) { - return false; - } - } else if (!groupings.equals(other.groupings)) { - return false; - } - if (usesNodes == null) { - if (other.usesNodes != null) { + if (whenCondition == null) { + if (other.whenCondition != null) { return false; } - } else if (!usesNodes.equals(other.usesNodes)) { + } else if (!whenCondition.equals(other.whenCondition)) { return false; } - if (whenCondition == null) { - if (other.whenCondition != null) { + if (childNodes == null) { + if (other.childNodes != null) { return false; } - } else if (!whenCondition.equals(other.whenCondition)) { + } else if (!childNodes.equals(other.childNodes)) { return false; } return true; @@ -374,13 +357,10 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder int result = 1; result = prime * result + ((targetPath == null) ? 0 : targetPath.hashCode()); - result = prime * result - + ((childNodes == null) ? 0 : childNodes.hashCode()); - result = prime * result - + ((groupings == null) ? 0 : groupings.hashCode()); - result = prime * result + ((uses == null) ? 0 : uses.hashCode()); result = prime * result + ((whenCondition == null) ? 0 : whenCondition.hashCode()); + result = prime * result + + ((childNodes == null) ? 0 : childNodes.hashCode()); return result; } @@ -403,32 +383,18 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder } else if (!targetPath.equals(other.targetPath)) { return false; } - if (childNodes == null) { - if (other.childNodes != null) { - return false; - } - } else if (!childNodes.equals(other.childNodes)) { - return false; - } - if (groupings == null) { - if (other.groupings != null) { - return false; - } - } else if (!groupings.equals(other.groupings)) { - return false; - } - if (uses == null) { - if (other.uses != null) { + if (whenCondition == null) { + if (other.whenCondition != null) { return false; } - } else if (!uses.equals(other.uses)) { + } else if (!whenCondition.equals(other.whenCondition)) { return false; } - if (whenCondition == null) { - if (other.whenCondition != null) { + if (childNodes == null) { + if (other.childNodes != null) { return false; } - } else if (!whenCondition.equals(other.whenCondition)) { + } else if (!childNodes.equals(other.childNodes)) { return false; } return true;