Bug 4327 - Fixed DataTreeChangeListener registration in PingPongDataBroker
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / broker / impl / PingPongFuture.java
index 611303a41adcfede958c88fb1bb1d8d32304c129..68ef76056af37c187642afcd94d7a43795b895ce 100644 (file)
@@ -12,7 +12,8 @@ import com.google.common.util.concurrent.ListenableFuture;
 import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException;
 
 /**
- * A {@link Future} used to report the status of an future {@link java.util.concurrent.Future}.
+ * A {@link java.util.concurrent.Future} used to report the status of an future
+ * {@link java.util.concurrent.Future}.
  */
 final class PingPongFuture extends AbstractCheckedFuture<Void, TransactionCommitFailedException> {
   protected PingPongFuture(final ListenableFuture<Void> delegate) {
@@ -24,7 +25,7 @@ final class PingPongFuture extends AbstractCheckedFuture<Void, TransactionCommit
     if (e.getCause() instanceof TransactionCommitFailedException){
       return (TransactionCommitFailedException) e.getCause();
     } else {
-      return new TransactionCommitFailedException(e.getMessage(), e.getCause(), null);
+            return new TransactionCommitFailedException(e.getMessage(), e.getCause());
     }
   }
 }