From b080c680d44e2eeb561c41f8a9d0ea5a860179a5 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Tue, 19 Dec 2023 11:09:22 +0100 Subject: [PATCH] Remove duplicate documentation We have directUsers() described, rename the field and drop superfluous documentation. JIRA: MDSAL-669 Change-Id: I3824704f9aa6b15c88a1f0118cdac034b939bb80 Signed-off-by: Robert Varga --- .../impl/rt/DefaultGroupingRuntimeType.java | 21 ++++++------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/rt/DefaultGroupingRuntimeType.java b/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/rt/DefaultGroupingRuntimeType.java index a0abdcefbb..418bfee741 100644 --- a/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/rt/DefaultGroupingRuntimeType.java +++ b/binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/rt/DefaultGroupingRuntimeType.java @@ -20,30 +20,21 @@ import org.opendaylight.yangtools.yang.model.api.stmt.GroupingEffectiveStatement public final class DefaultGroupingRuntimeType extends AbstractCompositeRuntimeType implements GroupingRuntimeType { - /** - * These are vectors towards concrete instantiations of this type -- i.e. the manifestation in the effective data - * tree. Each item in this list represents either: - *
    - *
  • a concrete instantiation, or
  • - *
  • another {@link GroupingRuntimeType}
  • - *
- * We use these vectors to create {@link #instantiations()}. - */ - private final @Nullable Object instantiationVectors; + private final @Nullable Object directUsers; public DefaultGroupingRuntimeType(final GeneratedType bindingType, final GroupingEffectiveStatement statement, - final List children, final List instantiationVectors) { + final List children, final List directUsers) { super(bindingType, statement, children); - this.instantiationVectors = switch (instantiationVectors.size()) { + this.directUsers = switch (directUsers.size()) { case 0 -> null; - case 1 -> Objects.requireNonNull(instantiationVectors.get(0)); - default -> instantiationVectors.stream().map(Objects::requireNonNull).toArray(CompositeRuntimeType[]::new); + case 1 -> Objects.requireNonNull(directUsers.get(0)); + default -> directUsers.stream().map(Objects::requireNonNull).toArray(CompositeRuntimeType[]::new); }; } @Override public List directUsers() { - final var local = instantiationVectors; + final var local = directUsers; if (local == null) { return List.of(); } else if (local instanceof CompositeRuntimeType[] array) { -- 2.36.6