Fixed Checkstyle violation errors in mdsal-common-api
[mdsal.git] / common / mdsal-common-api / src / main / java / org / opendaylight / mdsal / common / api / TransactionCommitDeadlockException.java
index fd4ea57ff544cf78652cbf9cc1920f046ba22ee8..b251de1021a05986c5cb7f8ce0d11c5fd30cdab9 100644 (file)
@@ -9,10 +9,14 @@
 package org.opendaylight.mdsal.common.api;
 
 import com.google.common.base.Supplier;
+
 import org.opendaylight.yangtools.yang.common.RpcError;
 import org.opendaylight.yangtools.yang.common.RpcError.ErrorType;
 import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 
+
+
+
 /**
  * A type of TransactionCommitFailedException that indicates a situation that would result in a
  * threading deadlock. This can occur if a caller that submits a write transaction tries to perform
@@ -25,10 +29,13 @@ import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
 public class TransactionCommitDeadlockException extends TransactionCommitFailedException {
     private static final long serialVersionUID = 1L;
     private static final String DEADLOCK_MESSAGE =
-            "An attempt to block on a ListenableFuture via a get method from a write " +
-            "transaction submit was detected that would result in deadlock. The commit " +
-            "result must be obtained asynchronously, e.g. via Futures#addCallback, to avoid deadlock.";
-    private static final RpcError DEADLOCK_RPCERROR = RpcResultBuilder.newError(ErrorType.APPLICATION, "lock-denied", DEADLOCK_MESSAGE);
+            "An attempt to block on a ListenableFuture via a get method from a write "
+                    +
+                    "transaction submit was detected that would result in deadlock. The commit "
+                    +
+                    "result must be obtained asynchronously, e.g. via Futures#addCallback, to avoid deadlock.";
+    private static final RpcError DEADLOCK_RPCERROR =
+            RpcResultBuilder.newError(ErrorType.APPLICATION, "lock-denied", DEADLOCK_MESSAGE);
 
     public static final Supplier<Exception> DEADLOCK_EXCEPTION_SUPPLIER = new Supplier<Exception>() {
         @Override