commit | c2862f018a4b87e53908ad29f6c55558d1f222ee | [log] [tgz] |
---|---|---|
author | GauravAgrawal-Huawei <gauravjbp3ster@gmail.com> | Tue Nov 28 06:21:48 2017 +0000 |
committer | Gerrit Code Review <gerrit@onosproject.org> | Tue Nov 28 06:21:48 2017 +0000 |
tree | bd2b27c625bfd709978fc1849eb3f0350d55dce6 | |
parent | fa664103dca272ebc7491b2eb481e177e19dba33 [diff] | |
parent | cbe07398ae676e02e10525f42907aea30b1116e3 [diff] |
Merge "Use deepEquals."
diff --git a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java index f7bc8d1..72221c4 100644 --- a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java +++ b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java
@@ -100,8 +100,7 @@ YangType rt = ((YangDerivedInfo) typeInfo .getDataTypeExtendedInfo()).getReferredTypeDef() .getTypeList().get(0); - return getObject(rt, v, ((YangDerivedInfo) - typeInfo.getDataTypeExtendedInfo()).getEffectiveBuiltInType()); + return getObject(rt, v, rt.getDataType()); case UNION: return parseUnionTypeInfo(typeInfo, v); default: