Remove EffectiveStatement namespaces
[yangtools.git] / model / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / api / stmt / SchemaTreeRoot.java
index 3dcaede4d0cb87db257ba032e4d2dbbcc7d67a09..51923de0cab5cbe57888dd63bbeb82f31980704d 100644 (file)
@@ -7,15 +7,13 @@
  */
 package org.opendaylight.yangtools.yang.model.api.stmt;
 
-import static org.opendaylight.yangtools.yang.model.api.stmt.DefaultMethodHelpers.filterOptional;
-
 import com.google.common.annotations.Beta;
 import java.util.Optional;
 import org.eclipse.jdt.annotation.NonNull;
 
 /**
  * Common interface implemented by entities which act as the root of the {@code schema tree} and are able to resolve an
- * {@code SchemaNodeIdentifier} to a {@link SchemaTreeEffectiveStatement}.
+ * {@link SchemaNodeIdentifier} to a {@link SchemaTreeEffectiveStatement}.
  */
 @Beta
 public interface SchemaTreeRoot {
@@ -43,6 +41,6 @@ public interface SchemaTreeRoot {
      */
     default <T> @NonNull Optional<T> findSchemaTreeNode(final @NonNull Class<T> type,
             final @NonNull SchemaNodeIdentifier path) {
-        return filterOptional(type, findSchemaTreeNode(path));
+        return DefaultMethodHelpers.filterOptional(findSchemaTreeNode(path), type);
     }
 }