Split Restconf implementations (draft02 and RFC) - Application
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / restconf / restful / utils / FutureCallbackTx.java
index 8f7e6583128f6d3945717fb59ca5d23f96311d93..e0ffc41a01af0874f359823783272e5ebdc6e045 100644 (file)
@@ -12,7 +12,7 @@ import java.util.ArrayList;
 import java.util.List;
 import org.opendaylight.controller.md.sal.dom.api.DOMRpcException;
 import org.opendaylight.controller.md.sal.dom.spi.DefaultDOMRpcResult;
-import org.opendaylight.netconf.sal.restconf.impl.RestconfDocumentedException;
+import org.opendaylight.restconf.common.errors.RestconfDocumentedException;
 import org.opendaylight.yangtools.yang.common.RpcError;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 import org.slf4j.Logger;
@@ -21,7 +21,9 @@ import org.slf4j.LoggerFactory;
 /**
  * Add callback for future objects and result set to the data factory.
  *
+ * @deprecated move to splitted module restconf-nb-rfc8040
  */
+@Deprecated
 final class FutureCallbackTx {
 
     private static final Logger LOG = LoggerFactory.getLogger(FutureCallbackTx.class);
@@ -50,7 +52,7 @@ final class FutureCallbackTx {
             final T result = listenableFuture.checkedGet();
             dataFactory.setResult(result);
             LOG.trace("Transaction({}) SUCCESSFUL", txType);
-        } catch (Exception e) {
+        } catch (final Exception e) {
             dataFactory.setFailureStatus();
             LOG.warn("Transaction({}) FAILED!", txType, e);
             if (e instanceof DOMRpcException) {