Tolerate children not being present 33/99933/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 2 Mar 2022 08:15:03 +0000 (09:15 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 2 Mar 2022 13:17:14 +0000 (14:17 +0100)
commitba811b4e3cb2529ceb81d77d2922e90895017b19
tree00620f3aa0fce986c99511314175d4ce8855a1e7
parent5d50b924dfa64f1e0886e3a472ead48c832215c9
Tolerate children not being present

Augment's children are subject to deviations at augment target, hence
we need to check for their presence. Also add some sorely-missing
documentation as to what this class actually does.

JIRA: YANGTOOLS-1404
Change-Id: I98cce6b2a8bff74658a16553f93eb8049dd038b7
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 81f38342831f259f93e0d35f3f1ddc6f0e90b91f)
model/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/util/EffectiveAugmentationSchema.java
model/yang-model-util/src/test/java/org/opendaylight/yangtools/yang/model/util/YT1404Test.java [new file with mode: 0644]
model/yang-model-util/src/test/resources/yt1404/dev.yang [new file with mode: 0644]
model/yang-model-util/src/test/resources/yt1404/foo.yang [new file with mode: 0644]