BUG-6937: correct format string 98/51198/2
authorRobert Varga <rovarga@cisco.com>
Tue, 17 Jan 2017 20:46:18 +0000 (21:46 +0100)
committerRobert Varga <rovarga@cisco.com>
Mon, 30 Jan 2017 20:20:28 +0000 (21:20 +0100)
This is a fix, the constructor takes String.format() string,
not a Logger.debug() one.

Change-Id: I966b02cd0c280b50ec1d0e77fb5a493fa2f5a4fe
Signed-off-by: Robert Varga <rovarga@cisco.com>
(cherry picked from commit c0ddac051a1eec4ac2b12191ce61b6fcec265772)

opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/RemoteRpcImplementation.java

index f80aae4fe2d922c85e8d9dc9841b87ff56e9c495..705bc855d09d49ed29e50f419670230d95252c05 100644 (file)
@@ -48,9 +48,9 @@ public class RemoteRpcImplementation implements DOMRpcImplementation {
             final NormalizedNode<?, ?> input) {
         if (input instanceof RemoteRpcInput) {
             LOG.warn("Rpc {} was removed during execution or there is loop present. Failing received rpc.", rpc);
-            return Futures
-                    .<DOMRpcResult, DOMRpcException>immediateFailedCheckedFuture(new DOMRpcImplementationNotAvailableException(
-                            "Rpc implementation for {} was removed during processing.", rpc));
+            return Futures.<DOMRpcResult, DOMRpcException>immediateFailedCheckedFuture(
+                    new DOMRpcImplementationNotAvailableException(
+                            "Rpc implementation for %s was removed during processing.", rpc));
         }
         final RemoteDOMRpcFuture frontEndFuture = RemoteDOMRpcFuture.create(rpc.getType().getLastComponent());
         findRouteAsync(rpc).onComplete(new OnComplete<FindRoutersReply>() {