When we are copying statements the source needs to have its effective
model present, hence it needs to be fullyDefined() already.
That makes it a 'true -> true' transition, which we do not need.
Verify that source.fullyDefined() and skip the set operation.
Change-Id: Iff21df88f6c5d35c05e4a165953ee1de586d9c4e
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
*/
package org.opendaylight.yangtools.yang.parser.stmt.reactor;
+import static com.google.common.base.Verify.verify;
import static java.util.Objects.requireNonNull;
import java.util.Collection;
this.parent = requireNonNull(parent);
this.source = requireNonNull(source);
if (source.isSupportedToBuildEffective()) {
+ verify(source.fullyDefined(), "Source %s is not fully defined", source);
source.incRef();
- // FIXME: is this call really needed? it is inherited from source
- setFullyDefined();
}
}