Bump upstreams
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / netconf / util / NetconfRpcFutureCallback.java
index 31ac09f2de442d6b941a21d15bec538d5611f157..0e272a2f87e46068dbfe80a476ae5bf2d665fec1 100644 (file)
@@ -23,13 +23,13 @@ public class NetconfRpcFutureCallback implements FutureCallback<DOMRpcResult> {
     private final RemoteDeviceId id;
 
     public NetconfRpcFutureCallback(final String prefix, final RemoteDeviceId id) {
-        this.type = prefix;
+        type = prefix;
         this.id = id;
     }
 
     @Override
     public void onSuccess(final DOMRpcResult result) {
-        if (result.getErrors().isEmpty()) {
+        if (result.errors().isEmpty()) {
             LOG.trace("{}: {} invoked successfully", id, type);
         } else {
             onUnsuccess(result);
@@ -37,7 +37,7 @@ public class NetconfRpcFutureCallback implements FutureCallback<DOMRpcResult> {
     }
 
     protected void onUnsuccess(final DOMRpcResult result) {
-        LOG.warn("{}: {} invoked unsuccessfully: {}", id, type, result.getErrors());
+        LOG.warn("{}: {} invoked unsuccessfully: {}", id, type, result.errors());
     }
 
     @Override