import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
-import java.util.Set;
import org.opendaylight.yangtools.yang.model.api.CaseSchemaNode;
import org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode;
import org.opendaylight.yangtools.yang.model.api.DataNodeContainer;
final LeafRefContextBuilder rootBuilder = new LeafRefContextBuilder(schemaContext.getQName(),
schemaContext.getPath(), schemaContext);
- final Set<Module> modules = schemaContext.getModules();
+ final Collection<? extends Module> modules = schemaContext.getModules();
for (final Module module : modules) {
for (final DataSchemaNode childNode : module.getChildNodes()) {
final LeafRefContext childLeafRefContext = buildLeafRefContextReferencingTree(childNode, module);
}
for (final Module module : modules) {
- final Collection<DataSchemaNode> childNodes = module.getChildNodes();
- for (final DataSchemaNode childNode : childNodes) {
+ for (final DataSchemaNode childNode : module.getChildNodes()) {
final LeafRefContext childLeafRefContext = buildLeafRefContextReferencedByTree(childNode, module);
if (childLeafRefContext.hasReferencedChild() || childLeafRefContext.isReferenced()) {