Remove duplicate documentation 84/109384/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Dec 2023 10:09:22 +0000 (11:09 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 19 Dec 2023 10:10:03 +0000 (11:10 +0100)
We have directUsers() described, rename the field and drop superfluous
documentation.

JIRA: MDSAL-669
Change-Id: I3824704f9aa6b15c88a1f0118cdac034b939bb80
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-generator/src/main/java/org/opendaylight/mdsal/binding/generator/impl/rt/DefaultGroupingRuntimeType.java

index a0abdcefbb02c7de44aebd796a250a253f4364e6..418bfee7414a2cc908a3b80166b98a25bc41c31c 100644 (file)
@@ -20,30 +20,21 @@ import org.opendaylight.yangtools.yang.model.api.stmt.GroupingEffectiveStatement
 
 public final class DefaultGroupingRuntimeType extends AbstractCompositeRuntimeType<GroupingEffectiveStatement>
         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:
-     * <ul>
-     *   <li>a concrete instantiation, or<li>
-     *   <li>another {@link GroupingRuntimeType}</li>
-     * </ul>
-     * 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<RuntimeType> children, final List<? extends CompositeRuntimeType> instantiationVectors) {
+            final List<RuntimeType> children, final List<? extends CompositeRuntimeType> 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<CompositeRuntimeType> directUsers() {
-        final var local = instantiationVectors;
+        final var local = directUsers;
         if (local == null) {
             return List.of();
         } else if (local instanceof CompositeRuntimeType[] array) {