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;
/**
* 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);
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) {