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=cccfc92733e78b5c52536d8224002f0e17a178b2;hb=ef8c2f065dbc510aff721573aaedeadf4b7e3031;hp=70bbe20a2091418924a0c39bf14c97670ff1e754;hpb=8f92eac51fa72dd2ebd98a5f1a9ca0799491633f;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 70bbe20a20..cccfc92733 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 @@ -25,11 +25,11 @@ public interface SchemaSourceFilter { * A {@link SchemaSourceFilter} which accepts any schema source it is presented with. */ @NonNull SchemaSourceFilter ALWAYS_ACCEPT = new SchemaSourceFilter() { - private final Iterable> representations = + private final ImmutableList> representations = ImmutableList.of(SchemaSourceRepresentation.class); @Override - public Iterable> supportedRepresentations() { + public ImmutableList> supportedRepresentations() { return representations; } @@ -57,6 +57,5 @@ public interface SchemaSourceFilter { * @return Promise of a filtering decision. The result should be {@link Boolean#TRUE} * if the source is acceptable. */ - // FIXME: 3.0.0: require FluentFuture ListenableFuture apply(SchemaSourceRepresentation schemaSource); }