X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=yang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Frepo%2Futil%2FAbstractSchemaRepository.java;fp=yang%2Fyang-model-util%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fyangtools%2Fyang%2Fmodel%2Frepo%2Futil%2FAbstractSchemaRepository.java;h=e059265d4d21d83b9095bc675076a22c94864867;hb=c24d6e2f39acbb11e22b5676bb7481ed52bec461;hp=ba5a40fcfce3ac4e572567870f5344f1fa2067fa;hpb=79e65073366934c6066c66336a23e4a3ac21fcd0;p=yangtools.git diff --git a/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/AbstractSchemaRepository.java b/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/AbstractSchemaRepository.java index ba5a40fcfc..e059265d4d 100644 --- a/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/AbstractSchemaRepository.java +++ b/yang/yang-model-util/src/main/java/org/opendaylight/yangtools/yang/model/repo/util/AbstractSchemaRepository.java @@ -24,6 +24,7 @@ import java.util.Comparator; import java.util.HashMap; import java.util.Iterator; import java.util.Map; +import javax.annotation.Nonnull; import javax.annotation.concurrent.GuardedBy; import org.opendaylight.yangtools.util.concurrent.ExceptionMapper; import org.opendaylight.yangtools.util.concurrent.ReflectiveExceptionMapper; @@ -73,7 +74,7 @@ public abstract class AbstractSchemaRepository implements SchemaRepository, Sche return Futures.makeChecked(Futures.withFallback(f, new FutureFallback() { @Override - public ListenableFuture create(final Throwable t) throws SchemaSourceException { + public ListenableFuture create(@Nonnull final Throwable t) throws SchemaSourceException { LOG.debug("Failed to acquire source from {}", reg, t); if (it.hasNext()) { @@ -86,7 +87,7 @@ public abstract class AbstractSchemaRepository implements SchemaRepository, Sche } @Override - public CheckedFuture getSchemaSource(final SourceIdentifier id, final Class representation) { + public CheckedFuture getSchemaSource(@Nonnull final SourceIdentifier id, @Nonnull final Class representation) { final ArrayList> sortedSchemaSourceRegistrations; synchronized (this) { @@ -118,7 +119,7 @@ public abstract class AbstractSchemaRepository implements SchemaRepository, Sche } @Override - public void onFailure(final Throwable t) { + public void onFailure(@Nonnull final Throwable t) { LOG.trace("Skipping notification for encountered source {}, fetching source failed", id, t); } });