X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Frepo%2Fapi%2FSchemaSourceFilter.java;h=85b26a52d4ba4b3bc334971a406914d15d673767;hb=c4dc5b33e7d24670b59cc81b65e15b37a3268608;hp=f881900754a53642d3696bfab3e67e2a47934ac2;hpb=ac4b2ade2f614701d1ae44381b6c2963f15587bb;p=yangtools.git diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceFilter.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceFilter.java index f881900754..85b26a52d4 100644 --- a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceFilter.java +++ b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/repo/api/SchemaSourceFilter.java @@ -3,17 +3,16 @@ * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/eplv10.html + * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.yang.model.repo.api; import com.google.common.annotations.Beta; import com.google.common.util.concurrent.Futures; import com.google.common.util.concurrent.ListenableFuture; - import java.util.Collections; -/* +/** * A filter of schema sources. This is used to restrict which sources representation * instances are allowed to participate in construction of a schema context. This * allows, for example, to create an non-shared island, or require the sources to @@ -25,12 +24,12 @@ public interface SchemaSourceFilter { * A {@link SchemaSourceFilter} which accepts any schema source it is presented with. */ public static final SchemaSourceFilter ALWAYS_ACCEPT = new SchemaSourceFilter() { - private final Iterable> REPRESENTATIONS = + private final Iterable> Representations = Collections.>singletonList(SchemaSourceRepresentation.class); @Override public Iterable> supportedRepresentations() { - return REPRESENTATIONS; + return Representations; } @Override