Split Restconf implementations (draft02 and RFC) - Application
[netconf.git] / restconf / restconf-nb-bierman02 / src / main / java / org / opendaylight / restconf / restful / utils / FutureCallbackTx.java
index e81ccbc63b72707e44191e7bf38c35d402d424c9..e0ffc41a01af0874f359823783272e5ebdc6e045 100644 (file)
@@ -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) {