BUG-9043: Remove use of CheckedFuture from YANG components
[yangtools.git] / yang / yang-model-api / src / main / java / org / opendaylight / yangtools / yang / model / repo / api / SchemaRepository.java
index 673929951f55c32dd9ea68614d7ff67eb86aeca8..cefd55868eeb84b392d66d284b3ca16dd217e897 100644 (file)
@@ -8,7 +8,7 @@
 package org.opendaylight.yangtools.yang.model.repo.api;
 
 import com.google.common.annotations.Beta;
-import com.google.common.util.concurrent.CheckedFuture;
+import com.google.common.util.concurrent.ListenableFuture;
 import javax.annotation.Nonnull;
 import org.opendaylight.yangtools.yang.model.api.SchemaContext;
 
@@ -29,6 +29,6 @@ public interface SchemaRepository {
      */
     SchemaContextFactory createSchemaContextFactory(@Nonnull SchemaSourceFilter filter);
 
-    <T extends SchemaSourceRepresentation> CheckedFuture<T, SchemaSourceException> getSchemaSource(
-            @Nonnull SourceIdentifier id, @Nonnull Class<T> represetation);
+    <T extends SchemaSourceRepresentation> ListenableFuture<T> getSchemaSource(@Nonnull SourceIdentifier id,
+            @Nonnull Class<T> represetation);
 }