Allow derived context to be reused
[yangtools.git] / yang / yang-parser-rfc7950 / src / main / java / org / opendaylight / yangtools / yang / parser / rfc7950 / stmt / EffectiveStatementMixins.java
index 3eb78f0488bd4a1d2a9dba1b1488f9ae7b061c3c..9182b2bb8f634ee86d19386f9b5c88f656ea6db9 100644 (file)
@@ -11,7 +11,6 @@ import com.google.common.annotations.Beta;
 import com.google.common.base.MoreObjects;
 import com.google.common.base.Strings;
 import com.google.common.collect.Collections2;
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableSet;
 import java.util.Collection;
 import java.util.Optional;
@@ -576,7 +575,7 @@ public final class EffectiveStatementMixins {
     }
 
     public static int historyAndStatusFlags(final CopyHistory history,
-            final ImmutableList<? extends EffectiveStatement<?, ?>> substatements) {
+            final Collection<? extends EffectiveStatement<?, ?>> substatements) {
         return new FlagsBuilder()
                 .setHistory(history)
                 .setStatus(AbstractStatementSupport.findFirstArgument(substatements,