Promote SchemaSourceRepresentation
[yangtools.git] / yang / yang-repo-api / src / main / java / org / opendaylight / yangtools / yang / model / repo / api / EffectiveModelContextFactory.java
index 7292b6e1866aa7ab82ccc2e4e38d1ce1d6e5d294..ec52092a4c2c0ab56d54fd495f16cb121b77c274 100644 (file)
@@ -9,10 +9,11 @@ package org.opendaylight.yangtools.yang.model.repo.api;
 
 import com.google.common.annotations.Beta;
 import com.google.common.util.concurrent.ListenableFuture;
-import java.util.Arrays;
 import java.util.Collection;
+import java.util.List;
 import org.eclipse.jdt.annotation.NonNull;
 import org.opendaylight.yangtools.yang.model.api.EffectiveModelContext;
+import org.opendaylight.yangtools.yang.model.api.source.SourceIdentifier;
 
 /**
  * An asynchronous factory for building {@link EffectiveModelContext} instances based on a specification of what
@@ -32,6 +33,6 @@ public interface EffectiveModelContextFactory {
 
     default @NonNull ListenableFuture<EffectiveModelContext> createEffectiveModelContext(
             final SourceIdentifier... requiredSources) {
-        return createEffectiveModelContext(Arrays.asList(requiredSources));
+        return createEffectiveModelContext(List.of(requiredSources));
     }
 }