Migrate mdsal-common-api to JUnit5
[mdsal.git] / common / mdsal-common-api / src / main / java / org / opendaylight / mdsal / common / api / TransactionCommitDeadlockException.java
index 50e338f125decdc7d6ebb12d533c16154ac04d23..8c43156624a2c6b67e1cc97d7d4e5eeeb839b4c3 100644 (file)
@@ -7,7 +7,6 @@
  */
 package org.opendaylight.mdsal.common.api;
 
-import java.io.Serial;
 import java.util.function.Supplier;
 import org.opendaylight.yangtools.yang.common.ErrorTag;
 import org.opendaylight.yangtools.yang.common.ErrorType;
@@ -24,11 +23,12 @@ import org.opendaylight.yangtools.yang.common.RpcResultBuilder;
  * @author Thomas Pantelis
  */
 public class TransactionCommitDeadlockException extends TransactionCommitFailedException {
-    @Serial
+    @java.io.Serial
     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 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, ErrorTag.LOCK_DENIED, DEADLOCK_MESSAGE);