From a429904142a1209f32a1df8db6319e07b82762db Mon Sep 17 00:00:00 2001 From: frank feng Date: Mon, 25 Sep 2023 08:36:32 +0800 Subject: support yangkit base lib version 1.4.0 Issue-ID: MODELING-680 Change-Id: I6494d055a857856d11b22761021f0b85e50a022e Signed-off-by: frank feng --- yang-comparator/pom.xml | 2 +- yang-compiler/pom.xml | 2 +- .../yangkit/compiler/plugin/yangtree/YangTreeGenerator.java | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/yang-comparator/pom.xml b/yang-comparator/pom.xml index 38884f8..1eff96a 100644 --- a/yang-comparator/pom.xml +++ b/yang-comparator/pom.xml @@ -60,7 +60,7 @@ io.github.yang-central.yangkit yangkit-parser - 1.3.6 + 1.4.0 org.onap.modeling.yangkit diff --git a/yang-compiler/pom.xml b/yang-compiler/pom.xml index 9199c82..742a745 100644 --- a/yang-compiler/pom.xml +++ b/yang-compiler/pom.xml @@ -64,7 +64,7 @@ io.github.yang-central.yangkit yangkit-parser - 1.3.6 + 1.4.0 diff --git a/yang-compiler/src/main/java/org/onap/modeling/yangkit/compiler/plugin/yangtree/YangTreeGenerator.java b/yang-compiler/src/main/java/org/onap/modeling/yangkit/compiler/plugin/yangtree/YangTreeGenerator.java index 6561ab4..03cbd82 100644 --- a/yang-compiler/src/main/java/org/onap/modeling/yangkit/compiler/plugin/yangtree/YangTreeGenerator.java +++ b/yang-compiler/src/main/java/org/onap/modeling/yangkit/compiler/plugin/yangtree/YangTreeGenerator.java @@ -61,7 +61,7 @@ import org.yangcentral.yangkit.model.api.stmt.YangStatement; import org.yangcentral.yangkit.model.api.stmt.YangUnknown; import org.yangcentral.yangkit.model.api.stmt.ext.AugmentStructure; import org.yangcentral.yangkit.model.api.stmt.ext.YangData; -import org.yangcentral.yangkit.model.api.stmt.ext.YangDataStructure; +import org.yangcentral.yangkit.model.api.stmt.ext.YangStructure; import org.yangcentral.yangkit.utils.file.FileUtil; @@ -100,7 +100,7 @@ public class YangTreeGenerator implements YangCompilerPlugin { new QName("urn:ietf:params:xml:ns:yang:ietf-restconf", "yang-data")); // yang structure extension - List yangStructureList = module.getUnknowns(YangDataStructure.YANG_KEYWORD); + List yangStructureList = module.getUnknowns(YangStructure.YANG_KEYWORD); // augment structure extension List augmentStructureList = module.getUnknowns(AugmentStructure.YANG_KEYWORD); @@ -180,7 +180,7 @@ public class YangTreeGenerator implements YangCompilerPlugin { //structures if (!yangStructureList.isEmpty()) { for (YangUnknown unknown : yangStructureList) { - YangDataStructure structure = (YangDataStructure) unknown; + YangStructure structure = (YangStructure) unknown; sb.append(TWO_SPACES); sb.append("structure"); sb.append(" "); -- cgit 1.2.3-korg