X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=netconf%2Fsal-netconf-connector%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetconf%2Fsal%2Fconnect%2Fnetconf%2Fsal%2FNetconfDeviceRpc.java;h=897cdaa5c73267039b1438aed9054cb69c37b9d9;hb=47c1b8e3d9835d336c79d6b4ca4e61417a05039e;hp=1b5ae10ec4955b74ecc5660a6ff19deb0cab45ca;hpb=45cfee1861924b4a8086d38079ce8cbd320386d6;p=netconf.git diff --git a/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceRpc.java b/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceRpc.java index 1b5ae10ec4..897cdaa5c7 100644 --- a/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceRpc.java +++ b/netconf/sal-netconf-connector/src/main/java/org/opendaylight/netconf/sal/connect/netconf/sal/NetconfDeviceRpc.java @@ -7,7 +7,6 @@ */ package org.opendaylight.netconf.sal.connect.netconf.sal; -import com.google.common.base.Function; import com.google.common.collect.Collections2; import com.google.common.util.concurrent.CheckedFuture; import com.google.common.util.concurrent.Futures; @@ -68,13 +67,8 @@ public final class NetconfDeviceRpc implements DOMRpcService { } }, MoreExecutors.directExecutor()); - return Futures.makeChecked(transformed, new Function() { - @Nullable - @Override - public DOMRpcException apply(@Nullable final Exception exception) { - return new DOMRpcImplementationNotAvailableException(exception, "Unable to invoke rpc %s", type); - } - }); + return Futures.makeChecked(transformed, exception -> + new DOMRpcImplementationNotAvailableException(exception, "Unable to invoke rpc %s", type)); } @Nonnull