Fix checkstyle issues in module sal-dom-broker
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / md / sal / dom / broker / impl / PingPongFuture.java
index 68ef76056af37c187642afcd94d7a43795b895ce..fd8f93b67dab930e71ee17ed64570f9639878a9a 100644 (file)
@@ -16,17 +16,17 @@ import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFaile
  * {@link java.util.concurrent.Future}.
  */
 final class PingPongFuture extends AbstractCheckedFuture<Void, TransactionCommitFailedException> {
-  protected PingPongFuture(final ListenableFuture<Void> delegate) {
-    super(delegate);
-  }
+    protected PingPongFuture(final ListenableFuture<Void> delegate) {
+        super(delegate);
+    }
 
-  @Override
-  protected TransactionCommitFailedException mapException(final Exception e) {
-    if (e.getCause() instanceof TransactionCommitFailedException){
-      return (TransactionCommitFailedException) e.getCause();
-    } else {
-            return new TransactionCommitFailedException(e.getMessage(), e.getCause());
+    @Override
+    protected TransactionCommitFailedException mapException(final Exception exception) {
+        if (exception.getCause() instanceof TransactionCommitFailedException) {
+            return (TransactionCommitFailedException) exception.getCause();
+        } else {
+            return new TransactionCommitFailedException(exception.getMessage(), exception.getCause());
+        }
     }
-  }
 }