Bug 8153: Enforce check-style rules for netconf - sal-netconf-connector
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / netconf / util / NetconfRpcFutureCallback.java
index 2e0349dcf56c3ea488ee71dc4c428ef0fc29294c..e5eaab1d7d92944350067eb6eef3026d489426bc 100644 (file)
@@ -15,7 +15,7 @@ import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
 /**
- * Simple Netconf rpc logging callback
+ * Simple Netconf RPC logging callback.
  */
 public class NetconfRpcFutureCallback implements FutureCallback<DOMRpcResult> {
     private static final Logger LOG  = LoggerFactory.getLogger(NetconfRpcFutureCallback.class);
@@ -30,7 +30,7 @@ public class NetconfRpcFutureCallback implements FutureCallback<DOMRpcResult> {
 
     @Override
     public void onSuccess(final DOMRpcResult result) {
-        if(result.getErrors().isEmpty()) {
+        if (result.getErrors().isEmpty()) {
             LOG.trace("{}: {} invoked successfully", id, type);
         } else {
             onUnsuccess(result);
@@ -42,7 +42,7 @@ public class NetconfRpcFutureCallback implements FutureCallback<DOMRpcResult> {
     }
 
     @Override
-    public void onFailure(final Throwable t) {
-        LOG.warn("{}: {} failed.", id, type, t);
+    public void onFailure(final Throwable throwable) {
+        LOG.warn("{}: {} failed.", id, type, throwable);
     }
 }