Remove EffectiveStatement.findAll() 29/92229/2
authorRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Aug 2020 08:27:59 +0000 (10:27 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Fri, 21 Aug 2020 08:59:48 +0000 (10:59 +0200)
This method has been replaced by getAll(), which has the same
semantics. Remove it now.

Change-Id: I3e5bdc3ec903a9e57d5beb7d996bea9ea4c62691
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/EffectiveStatement.java

index b47a301dce203c4c3cf98495cd5d7ff3429b9716..bb6e4d5338cb681a747e6880fd06b9527ca043c3 100644 (file)
@@ -7,8 +7,6 @@
  */
 package org.opendaylight.yangtools.yang.model.api.meta;
 
-import static java.util.Objects.requireNonNull;
-
 import com.google.common.annotations.Beta;
 import java.util.Collection;
 import java.util.Map;
@@ -59,22 +57,6 @@ public interface EffectiveStatement<A, D extends DeclaredStatement<A>> extends M
      */
     <K, V, N extends IdentifierNamespace<K, V>> @NonNull Map<K, V> getAll(@NonNull Class<N> namespace);
 
-    /**
-     * Returns all local values from supplied namespace.
-     *
-     * @param <K> Identifier type
-     * @param <V> Value type
-     * @param <N> Namespace identifier type
-     * @param namespace Namespace type
-     * @return Key-value mappings, empty if the namespace does not exist.
-     * @throws NullPointerException if namespace is null
-     * @deprecated Use {@link #getAll(Class)} instead
-     */
-    @Deprecated(forRemoval = true)
-    default <K, V, N extends IdentifierNamespace<K, V>> @NonNull Map<K, V> findAll(final @NonNull Class<N> namespace) {
-        return getAll(requireNonNull(namespace));
-    }
-
     /**
      * Returns a collection of all effective substatements.
      *