X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-clustering-commons%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fschema%2Fprovider%2Fimpl%2FRemoteSchemaProvider.java;h=3208e390a44104e2c245ca8c47b448bb175611d4;hb=4e696d9795fe7eef40369c05c340d137394126f3;hp=e2a42b2f5e9be8e01a598c9ae0369e0c0008fb2c;hpb=f2aa0c3d35d7ec7b61fafe614128042c1a0251d8;p=controller.git diff --git a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/RemoteSchemaProvider.java b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/RemoteSchemaProvider.java index e2a42b2f5e..3208e390a4 100644 --- a/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/RemoteSchemaProvider.java +++ b/opendaylight/md-sal/sal-clustering-commons/src/main/java/org/opendaylight/controller/cluster/schema/provider/impl/RemoteSchemaProvider.java @@ -38,8 +38,8 @@ public class RemoteSchemaProvider implements SchemaSourceProvider MAPPER = new ExceptionMapper( "schemaDownload", SchemaSourceException.class) { @Override - protected SchemaSourceException newWithCause(final String s, final Throwable throwable) { - return new SchemaSourceException(s, throwable); + protected SchemaSourceException newWithCause(final String message, final Throwable throwable) { + return new SchemaSourceException(message, throwable); } }; @@ -57,11 +57,12 @@ public class RemoteSchemaProvider implements SchemaSourceProvider res = SettableFuture.create(); result.onComplete(new OnComplete() { @Override - public void onComplete(Throwable throwable, YangTextSchemaSourceSerializationProxy yangTextSchemaSourceSerializationProxy) { - if(yangTextSchemaSourceSerializationProxy != null) { + public void onComplete(Throwable throwable, + YangTextSchemaSourceSerializationProxy yangTextSchemaSourceSerializationProxy) { + if (yangTextSchemaSourceSerializationProxy != null) { res.set(yangTextSchemaSourceSerializationProxy.getRepresentation()); } - if(throwable != null) { + if (throwable != null) { res.setException(throwable); } }