Replace deprecated Futures.addCallback by the newer version 75/64275/1
authorDavid Suarez <david.suarez.fuentes@gmail.com>
Sat, 14 Oct 2017 09:08:20 +0000 (11:08 +0200)
committerDavid Suarez <david.suarez.fuentes@gmail.com>
Sat, 14 Oct 2017 09:08:20 +0000 (11:08 +0200)
commit63ea0341c647e2dc4a795d4c48552186c25816bd
tree57464d932d353e7064791ae03c230b691372c945
parenta43be30bec32b9fa5717e9b288738493257d826a
Replace deprecated Futures.addCallback by the newer version

The method addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback) is deprecated and will be replaced
by a new its new version addCallback(ListenableFuture<V> future,
FutureCallback<? super V> callback, Executor executor) in April 2018.

Some other minor changes fix checkstyle/sonar issues.

Change-Id: Ic6c31424b1dc8d5e4d257a77fb858d6fa47ca814
Signed-off-by: David Suarez <david.suarez.fuentes@gmail.com>
opendaylight/md-sal/sal-cluster-admin-impl/src/main/java/org/opendaylight/controller/cluster/datastore/admin/ClusterAdminRpcService.java
opendaylight/md-sal/sal-cluster-admin-impl/src/test/java/org/opendaylight/controller/cluster/datastore/admin/ClusterAdminRpcServiceTest.java

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.