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=29c38dfa0e727eaaba4c61adf7320f8893bb90c8;hpb=6f9523a8243defc7e0c9534274e2c41a4b89dc9e;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 29c38dfa0e..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 @@ -190,6 +190,8 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder + ((augmentTargetStr == null) ? 0 : augmentTargetStr.hashCode()); result = prime * result + ((whenCondition == null) ? 0 : whenCondition.hashCode()); + result = prime * result + + ((childNodes == null) ? 0 : childNodes.hashCode()); return result; } @@ -219,6 +221,13 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder } else if (!whenCondition.equals(other.whenCondition)) { return false; } + if (childNodes == null) { + if (other.childNodes != null) { + return false; + } + } else if (!childNodes.equals(other.childNodes)) { + return false; + } return true; } @@ -350,6 +359,8 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder + ((targetPath == null) ? 0 : targetPath.hashCode()); result = prime * result + ((whenCondition == null) ? 0 : whenCondition.hashCode()); + result = prime * result + + ((childNodes == null) ? 0 : childNodes.hashCode()); return result; } @@ -379,6 +390,13 @@ public class AugmentationSchemaBuilderImpl implements AugmentationSchemaBuilder } else if (!whenCondition.equals(other.whenCondition)) { return false; } + if (childNodes == null) { + if (other.childNodes != null) { + return false; + } + } else if (!childNodes.equals(other.childNodes)) { + return false; + } return true; }