diff --git a/changes/en-us/2.x.md b/changes/en-us/2.x.md index 28cd550ca7e..9296a4c4d6b 100644 --- a/changes/en-us/2.x.md +++ b/changes/en-us/2.x.md @@ -76,8 +76,10 @@ Add changes here for all PR submitted to the 2.x branch. - [[#6298](https://github.com/apache/incubator-seata/pull/6298)] repackage name to org.apache.seata - [[#6306](https://github.com/apache/incubator-seata/pull/6306)] replace some URL to org/apache/seata - [[#6304](https://github.com/apache/incubator-seata/pull/6304)] disable Publish OSSRH workflow +- [[#6310](https://github.com/apache/incubator-seata/pull/6310)] seata-server compatible io.seata package - [[#6301](https://github.com/apache/incubator-seata/pull/6301)] upgrade console frontend dependencies and supported nodejs versions + ### security: - [[#6069](https://github.com/apache/incubator-seata/pull/6069)] Upgrade Guava dependencies to fix security vulnerabilities - [[#6145](https://github.com/apache/incubator-seata/pull/6145)] upgrade jettison to 1.5.4 diff --git a/changes/zh-cn/2.x.md b/changes/zh-cn/2.x.md index b68fba1a3f1..81a0091aa87 100644 --- a/changes/zh-cn/2.x.md +++ b/changes/zh-cn/2.x.md @@ -74,8 +74,10 @@ - [[#6298](https://github.com/apache/incubator-seata/pull/6298)] 重命名包名为 org.apache.seata - [[#6306](https://github.com/apache/incubator-seata/pull/6306)] 替换一些URL 至 org/apache/seata - [[#6304](https://github.com/apache/incubator-seata/pull/6304)] 禁用 OSSRH 发布工作流 +- [[#6310](https://github.com/apache/incubator-seata/pull/6310)] seata-server兼容io.seata包 - [[#6301](https://github.com/apache/incubator-seata/pull/6301)] 升级console前端依赖及支持的nodejs版本 + ### security: - [[#6069](https://github.com/apache/incubator-seata/pull/6069)] 升级Guava依赖版本,修复安全漏洞 - [[#6144](https://github.com/apache/incubator-seata/pull/6144)] 升级Nacos依赖版本至1.4.6 diff --git a/common/src/main/java/org/apache/seata/common/DefaultValues.java b/common/src/main/java/org/apache/seata/common/DefaultValues.java index dac336d115a..67e21838fbe 100644 --- a/common/src/main/java/org/apache/seata/common/DefaultValues.java +++ b/common/src/main/java/org/apache/seata/common/DefaultValues.java @@ -18,8 +18,6 @@ import java.time.Duration; -/** - */ public interface DefaultValues { int DEFAULT_CLIENT_LOCK_RETRY_INTERVAL = 10; int DEFAULT_TM_DEGRADE_CHECK_ALLOW_TIMES = 10; diff --git a/common/src/main/java/org/apache/seata/common/exception/JsonParseException.java b/common/src/main/java/org/apache/seata/common/exception/JsonParseException.java index 1dcef6fc338..c6cdea22e36 100644 --- a/common/src/main/java/org/apache/seata/common/exception/JsonParseException.java +++ b/common/src/main/java/org/apache/seata/common/exception/JsonParseException.java @@ -16,8 +16,7 @@ */ package org.apache.seata.common.exception; -/** - */ + public class JsonParseException extends RuntimeException { public JsonParseException(String message) { diff --git a/common/src/main/java/org/apache/seata/common/metadata/ClusterRole.java b/common/src/main/java/org/apache/seata/common/metadata/ClusterRole.java index 447d0647674..5da6043fa45 100644 --- a/common/src/main/java/org/apache/seata/common/metadata/ClusterRole.java +++ b/common/src/main/java/org/apache/seata/common/metadata/ClusterRole.java @@ -16,8 +16,7 @@ */ package org.apache.seata.common.metadata; -/** - */ + public enum ClusterRole { /** diff --git a/common/src/main/java/org/apache/seata/common/metadata/Metadata.java b/common/src/main/java/org/apache/seata/common/metadata/Metadata.java index e4a60f059a2..f5664c9edf7 100644 --- a/common/src/main/java/org/apache/seata/common/metadata/Metadata.java +++ b/common/src/main/java/org/apache/seata/common/metadata/Metadata.java @@ -27,8 +27,7 @@ import org.apache.seata.common.store.StoreMode; import org.apache.seata.common.util.StringUtils; -/** - */ + public class Metadata { private final Map> leaders = new ConcurrentHashMap<>(); diff --git a/common/src/main/java/org/apache/seata/common/metadata/MetadataResponse.java b/common/src/main/java/org/apache/seata/common/metadata/MetadataResponse.java index 8eeaea20215..609402947fb 100644 --- a/common/src/main/java/org/apache/seata/common/metadata/MetadataResponse.java +++ b/common/src/main/java/org/apache/seata/common/metadata/MetadataResponse.java @@ -18,8 +18,7 @@ import java.util.List; -/** - */ + public class MetadataResponse { List nodes; diff --git a/common/src/main/java/org/apache/seata/common/metadata/Node.java b/common/src/main/java/org/apache/seata/common/metadata/Node.java index 314e4497437..e200e79824c 100644 --- a/common/src/main/java/org/apache/seata/common/metadata/Node.java +++ b/common/src/main/java/org/apache/seata/common/metadata/Node.java @@ -19,8 +19,7 @@ import java.util.HashMap; import java.util.Map; -/** - */ + public class Node { Map metadata = new HashMap<>(); diff --git a/common/src/main/java/org/apache/seata/common/util/ConfigTools.java b/common/src/main/java/org/apache/seata/common/util/ConfigTools.java index f99f857252b..f2890d2e27b 100644 --- a/common/src/main/java/org/apache/seata/common/util/ConfigTools.java +++ b/common/src/main/java/org/apache/seata/common/util/ConfigTools.java @@ -27,8 +27,7 @@ import java.util.Base64; import javax.crypto.Cipher; -/** - */ + public class ConfigTools { // generate key pair diff --git a/common/src/main/java/org/apache/seata/common/util/DurationUtil.java b/common/src/main/java/org/apache/seata/common/util/DurationUtil.java index 994e33d80ef..efa14a5ad19 100644 --- a/common/src/main/java/org/apache/seata/common/util/DurationUtil.java +++ b/common/src/main/java/org/apache/seata/common/util/DurationUtil.java @@ -20,8 +20,7 @@ import java.time.format.DateTimeParseException; import java.util.regex.Pattern; -/** - */ + public class DurationUtil { public static final Duration DEFAULT_DURATION = Duration.ofMillis(-1); diff --git a/common/src/main/java/org/apache/seata/common/util/HttpClientUtil.java b/common/src/main/java/org/apache/seata/common/util/HttpClientUtil.java index be461895bba..928fda7bdd4 100644 --- a/common/src/main/java/org/apache/seata/common/util/HttpClientUtil.java +++ b/common/src/main/java/org/apache/seata/common/util/HttpClientUtil.java @@ -44,8 +44,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -/** - */ + public class HttpClientUtil { private static final Logger LOGGER = LoggerFactory.getLogger(HttpClientUtil.class); diff --git a/common/src/main/java/org/apache/seata/common/util/IOUtil.java b/common/src/main/java/org/apache/seata/common/util/IOUtil.java index 1bf30938e35..5545cce6e5a 100644 --- a/common/src/main/java/org/apache/seata/common/util/IOUtil.java +++ b/common/src/main/java/org/apache/seata/common/util/IOUtil.java @@ -16,8 +16,7 @@ */ package org.apache.seata.common.util; -/** - */ + public class IOUtil { /** diff --git a/common/src/main/java/org/apache/seata/common/util/IdWorker.java b/common/src/main/java/org/apache/seata/common/util/IdWorker.java index f8be033dd89..62120ceeb14 100644 --- a/common/src/main/java/org/apache/seata/common/util/IdWorker.java +++ b/common/src/main/java/org/apache/seata/common/util/IdWorker.java @@ -21,8 +21,7 @@ import java.util.Random; import java.util.concurrent.atomic.AtomicLong; -/** - */ + public class IdWorker { /** diff --git a/common/src/main/java/org/apache/seata/common/util/SizeUtil.java b/common/src/main/java/org/apache/seata/common/util/SizeUtil.java index be7a72c50a5..c5a9a21c6c4 100755 --- a/common/src/main/java/org/apache/seata/common/util/SizeUtil.java +++ b/common/src/main/java/org/apache/seata/common/util/SizeUtil.java @@ -16,8 +16,7 @@ */ package org.apache.seata.common.util; -/** - */ + public class SizeUtil { private static final long RADIX = 1024; /** diff --git a/common/src/main/java/org/apache/seata/common/util/StringFormatUtils.java b/common/src/main/java/org/apache/seata/common/util/StringFormatUtils.java index 5226428360a..a8f2309db02 100644 --- a/common/src/main/java/org/apache/seata/common/util/StringFormatUtils.java +++ b/common/src/main/java/org/apache/seata/common/util/StringFormatUtils.java @@ -16,8 +16,7 @@ */ package org.apache.seata.common.util; -/** - */ + public class StringFormatUtils { private static final char MINUS = '-'; private static final char UNDERLINE = '_'; diff --git a/common/src/test/java/org/apache/seata/common/exception/AuthenticationFailedExceptionTest.java b/common/src/test/java/org/apache/seata/common/exception/AuthenticationFailedExceptionTest.java index a3c4911466e..433a1e97300 100644 --- a/common/src/test/java/org/apache/seata/common/exception/AuthenticationFailedExceptionTest.java +++ b/common/src/test/java/org/apache/seata/common/exception/AuthenticationFailedExceptionTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class AuthenticationFailedExceptionTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/exception/JsonParseExceptionTest.java b/common/src/test/java/org/apache/seata/common/exception/JsonParseExceptionTest.java index a8326683e05..e6a0c144bea 100644 --- a/common/src/test/java/org/apache/seata/common/exception/JsonParseExceptionTest.java +++ b/common/src/test/java/org/apache/seata/common/exception/JsonParseExceptionTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class JsonParseExceptionTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/exception/RedisExceptionTest.java b/common/src/test/java/org/apache/seata/common/exception/RedisExceptionTest.java index e7e29f7f457..895048bffd1 100644 --- a/common/src/test/java/org/apache/seata/common/exception/RedisExceptionTest.java +++ b/common/src/test/java/org/apache/seata/common/exception/RedisExceptionTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class RedisExceptionTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/exception/RetryableExceptionTest.java b/common/src/test/java/org/apache/seata/common/exception/RetryableExceptionTest.java index a0ec5da343d..aa3bc9cbb0d 100644 --- a/common/src/test/java/org/apache/seata/common/exception/RetryableExceptionTest.java +++ b/common/src/test/java/org/apache/seata/common/exception/RetryableExceptionTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class RetryableExceptionTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/holder/ObjectHolderTest.java b/common/src/test/java/org/apache/seata/common/holder/ObjectHolderTest.java index f88f2fd3fd8..b5cfd827076 100644 --- a/common/src/test/java/org/apache/seata/common/holder/ObjectHolderTest.java +++ b/common/src/test/java/org/apache/seata/common/holder/ObjectHolderTest.java @@ -22,8 +22,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -/** - */ + public class ObjectHolderTest { @BeforeEach diff --git a/common/src/test/java/org/apache/seata/common/io/FileLoaderTest.java b/common/src/test/java/org/apache/seata/common/io/FileLoaderTest.java index ef3856ffb12..0676aa0280c 100644 --- a/common/src/test/java/org/apache/seata/common/io/FileLoaderTest.java +++ b/common/src/test/java/org/apache/seata/common/io/FileLoaderTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class FileLoaderTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/loader/ExtensionDefinitionTest.java b/common/src/test/java/org/apache/seata/common/loader/ExtensionDefinitionTest.java index 660f4c815f3..b59239e3f55 100644 --- a/common/src/test/java/org/apache/seata/common/loader/ExtensionDefinitionTest.java +++ b/common/src/test/java/org/apache/seata/common/loader/ExtensionDefinitionTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class ExtensionDefinitionTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/loader/Hello2.java b/common/src/test/java/org/apache/seata/common/loader/Hello2.java index 54bec31efcd..ebe1b35d193 100644 --- a/common/src/test/java/org/apache/seata/common/loader/Hello2.java +++ b/common/src/test/java/org/apache/seata/common/loader/Hello2.java @@ -16,7 +16,6 @@ */ package org.apache.seata.common.loader; -/** - */ + public interface Hello2 { } diff --git a/common/src/test/java/org/apache/seata/common/loader/JapaneseHello.java b/common/src/test/java/org/apache/seata/common/loader/JapaneseHello.java index a2decbd79a3..037c06af337 100644 --- a/common/src/test/java/org/apache/seata/common/loader/JapaneseHello.java +++ b/common/src/test/java/org/apache/seata/common/loader/JapaneseHello.java @@ -16,8 +16,7 @@ */ package org.apache.seata.common.loader; -/** - */ + @LoadLevel(name = "JapaneseHello", order = Integer.MAX_VALUE) public class JapaneseHello implements Hello2{ diff --git a/common/src/test/java/org/apache/seata/common/metadata/ClusterRoleTest.java b/common/src/test/java/org/apache/seata/common/metadata/ClusterRoleTest.java index 3743ce5275f..543d66990f6 100644 --- a/common/src/test/java/org/apache/seata/common/metadata/ClusterRoleTest.java +++ b/common/src/test/java/org/apache/seata/common/metadata/ClusterRoleTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class ClusterRoleTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/metadata/MetadataTest.java b/common/src/test/java/org/apache/seata/common/metadata/MetadataTest.java index 442362139d0..f11603bdf02 100644 --- a/common/src/test/java/org/apache/seata/common/metadata/MetadataTest.java +++ b/common/src/test/java/org/apache/seata/common/metadata/MetadataTest.java @@ -24,8 +24,7 @@ import java.util.ArrayList; import java.util.List; -/** - */ + public class MetadataTest { private static Metadata metadata; diff --git a/common/src/test/java/org/apache/seata/common/metadata/NodeTest.java b/common/src/test/java/org/apache/seata/common/metadata/NodeTest.java index 58420b9fd01..ca65d49992b 100644 --- a/common/src/test/java/org/apache/seata/common/metadata/NodeTest.java +++ b/common/src/test/java/org/apache/seata/common/metadata/NodeTest.java @@ -21,8 +21,7 @@ import java.util.HashMap; -/** - */ + public class NodeTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/thread/NamedThreadFactoryTest.java b/common/src/test/java/org/apache/seata/common/thread/NamedThreadFactoryTest.java index fe7ff53d910..00d0ef0ef73 100644 --- a/common/src/test/java/org/apache/seata/common/thread/NamedThreadFactoryTest.java +++ b/common/src/test/java/org/apache/seata/common/thread/NamedThreadFactoryTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Test; -/** - */ + public class NamedThreadFactoryTest { private static final int THREAD_TOTAL_SIZE = 3; private static final int DEFAULT_THREAD_PREFIX_COUNTER = 1; diff --git a/common/src/test/java/org/apache/seata/common/util/ArrayUtilsTest.java b/common/src/test/java/org/apache/seata/common/util/ArrayUtilsTest.java index ebc633b4c2b..947cb779e02 100644 --- a/common/src/test/java/org/apache/seata/common/util/ArrayUtilsTest.java +++ b/common/src/test/java/org/apache/seata/common/util/ArrayUtilsTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class ArrayUtilsTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/util/BufferUtilsTest.java b/common/src/test/java/org/apache/seata/common/util/BufferUtilsTest.java index 7941865b504..72822199ffd 100644 --- a/common/src/test/java/org/apache/seata/common/util/BufferUtilsTest.java +++ b/common/src/test/java/org/apache/seata/common/util/BufferUtilsTest.java @@ -21,8 +21,7 @@ import java.nio.ByteBuffer; -/** - */ + public class BufferUtilsTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/util/ConfigToolsTest.java b/common/src/test/java/org/apache/seata/common/util/ConfigToolsTest.java index 9bc4ff3b9e0..ba6dee1b349 100644 --- a/common/src/test/java/org/apache/seata/common/util/ConfigToolsTest.java +++ b/common/src/test/java/org/apache/seata/common/util/ConfigToolsTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class ConfigToolsTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/util/CycleDependencyHandlerTest.java b/common/src/test/java/org/apache/seata/common/util/CycleDependencyHandlerTest.java index 74cfdcd1bb4..94611d200b7 100644 --- a/common/src/test/java/org/apache/seata/common/util/CycleDependencyHandlerTest.java +++ b/common/src/test/java/org/apache/seata/common/util/CycleDependencyHandlerTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class CycleDependencyHandlerTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/util/DateUtilTest.java b/common/src/test/java/org/apache/seata/common/util/DateUtilTest.java index 1598d094fd8..2af62ef2626 100644 --- a/common/src/test/java/org/apache/seata/common/util/DateUtilTest.java +++ b/common/src/test/java/org/apache/seata/common/util/DateUtilTest.java @@ -23,8 +23,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DateUtilTest { @Test public void testGetCurrentDate() { diff --git a/common/src/test/java/org/apache/seata/common/util/HttpClientUtilTest.java b/common/src/test/java/org/apache/seata/common/util/HttpClientUtilTest.java index d96c112b635..bff0054e8e9 100644 --- a/common/src/test/java/org/apache/seata/common/util/HttpClientUtilTest.java +++ b/common/src/test/java/org/apache/seata/common/util/HttpClientUtilTest.java @@ -22,8 +22,7 @@ import java.io.IOException; import java.util.HashMap; -/** - */ + public class HttpClientUtilTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/util/IOUtilTest.java b/common/src/test/java/org/apache/seata/common/util/IOUtilTest.java index f74cf833479..351c21600c4 100644 --- a/common/src/test/java/org/apache/seata/common/util/IOUtilTest.java +++ b/common/src/test/java/org/apache/seata/common/util/IOUtilTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class IOUtilTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/util/LowerCaseLinkHashMapTest.java b/common/src/test/java/org/apache/seata/common/util/LowerCaseLinkHashMapTest.java index c8f9589bf7e..2d5191b73b7 100644 --- a/common/src/test/java/org/apache/seata/common/util/LowerCaseLinkHashMapTest.java +++ b/common/src/test/java/org/apache/seata/common/util/LowerCaseLinkHashMapTest.java @@ -27,8 +27,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -/** - */ + public class LowerCaseLinkHashMapTest { private static final Map lowerCaseLinkHashMap = new LowerCaseLinkHashMap<>(); diff --git a/common/src/test/java/org/apache/seata/common/util/MapUtilTest.java b/common/src/test/java/org/apache/seata/common/util/MapUtilTest.java index 16c5e872cc3..697d0f3c723 100644 --- a/common/src/test/java/org/apache/seata/common/util/MapUtilTest.java +++ b/common/src/test/java/org/apache/seata/common/util/MapUtilTest.java @@ -24,8 +24,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class MapUtilTest { @Test diff --git a/common/src/test/java/org/apache/seata/common/util/NumberUtilsTest.java b/common/src/test/java/org/apache/seata/common/util/NumberUtilsTest.java index 29e43e249cb..828f7c2fe26 100644 --- a/common/src/test/java/org/apache/seata/common/util/NumberUtilsTest.java +++ b/common/src/test/java/org/apache/seata/common/util/NumberUtilsTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class NumberUtilsTest { @Test diff --git a/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterCompressor.java b/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterCompressor.java index ac36f920b6e..6317e8e6ecc 100644 --- a/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterCompressor.java +++ b/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterCompressor.java @@ -19,8 +19,7 @@ import org.apache.seata.common.loader.LoadLevel; import org.apache.seata.core.compressor.Compressor; -/** - */ + @LoadLevel(name = "DEFLATER") public class DeflaterCompressor implements Compressor { diff --git a/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java b/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java index 98a77d87d8b..607da628735 100644 --- a/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java +++ b/compressor/seata-compressor-deflater/src/main/java/org/apache/seata/compressor/deflater/DeflaterUtil.java @@ -21,8 +21,7 @@ import java.util.zip.Deflater; import java.util.zip.Inflater; -/** - */ + public class DeflaterUtil { private DeflaterUtil() { diff --git a/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterCompressorTest.java b/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterCompressorTest.java index f4a5d308ccc..ce192a9ae9e 100644 --- a/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterCompressorTest.java +++ b/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterCompressorTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DeflaterCompressorTest { @Test diff --git a/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterUtilTest.java b/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterUtilTest.java index 124dd72ce2c..c6588cd3859 100644 --- a/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterUtilTest.java +++ b/compressor/seata-compressor-deflater/src/test/java/org/apache/seata/compressor/deflater/DeflaterUtilTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DeflaterUtilTest { @Test diff --git a/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipCompressor.java b/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipCompressor.java index 01db837902b..eb489952a0c 100644 --- a/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipCompressor.java +++ b/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipCompressor.java @@ -19,8 +19,7 @@ import org.apache.seata.common.loader.LoadLevel; import org.apache.seata.core.compressor.Compressor; -/** - */ + @LoadLevel(name = "GZIP") public class GzipCompressor implements Compressor { diff --git a/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipUtil.java b/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipUtil.java index 8058c9ef8c3..7eabaeb3e6b 100644 --- a/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipUtil.java +++ b/compressor/seata-compressor-gzip/src/main/java/org/apache/seata/compressor/gzip/GzipUtil.java @@ -22,8 +22,7 @@ import java.util.zip.GZIPInputStream; import java.util.zip.GZIPOutputStream; -/** - */ + public class GzipUtil { private GzipUtil() { diff --git a/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipCompressorTest.java b/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipCompressorTest.java index e908b2676fe..dbe374366c7 100644 --- a/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipCompressorTest.java +++ b/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipCompressorTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class GzipCompressorTest { @Test diff --git a/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipUtilTest.java b/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipUtilTest.java index 6599f7f9b4d..8e2cb266490 100644 --- a/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipUtilTest.java +++ b/compressor/seata-compressor-gzip/src/test/java/org/apache/seata/compressor/gzip/GzipUtilTest.java @@ -21,8 +21,7 @@ import java.util.zip.GZIPInputStream; -/** - */ + public class GzipUtilTest { @Test diff --git a/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4CompressorTest.java b/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4CompressorTest.java index d7bda860e69..46ccd0abee5 100644 --- a/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4CompressorTest.java +++ b/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4CompressorTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class Lz4CompressorTest { @Test diff --git a/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4UtilTest.java b/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4UtilTest.java index ab7ee8d8974..14afa95ba38 100644 --- a/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4UtilTest.java +++ b/compressor/seata-compressor-lz4/src/test/java/org/apache/seata/compressor/lz4/Lz4UtilTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class Lz4UtilTest { @Test public void testCompress() { diff --git a/config/seata-config-apollo/src/main/java/org/apache/seata/config/apollo/ApolloConfigurationProvider.java b/config/seata-config-apollo/src/main/java/org/apache/seata/config/apollo/ApolloConfigurationProvider.java index 36c82966944..87316395837 100644 --- a/config/seata-config-apollo/src/main/java/org/apache/seata/config/apollo/ApolloConfigurationProvider.java +++ b/config/seata-config-apollo/src/main/java/org/apache/seata/config/apollo/ApolloConfigurationProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.config.Configuration; import org.apache.seata.config.ConfigurationProvider; -/** - */ + @LoadLevel(name = "Apollo", order = 1) public class ApolloConfigurationProvider implements ConfigurationProvider { @Override diff --git a/config/seata-config-consul/src/main/java/org/apache/seata/config/consul/ConsulConfigurationProvider.java b/config/seata-config-consul/src/main/java/org/apache/seata/config/consul/ConsulConfigurationProvider.java index 87083155900..528aa35403a 100644 --- a/config/seata-config-consul/src/main/java/org/apache/seata/config/consul/ConsulConfigurationProvider.java +++ b/config/seata-config-consul/src/main/java/org/apache/seata/config/consul/ConsulConfigurationProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.config.Configuration; import org.apache.seata.config.ConfigurationProvider; -/** - */ + @LoadLevel(name = "Consul", order = 1) public class ConsulConfigurationProvider implements ConfigurationProvider { @Override diff --git a/config/seata-config-core/src/main/java/org/apache/seata/config/ConfigurationCache.java b/config/seata-config-core/src/main/java/org/apache/seata/config/ConfigurationCache.java index 9dab94baf71..faa4cf90b9c 100644 --- a/config/seata-config-core/src/main/java/org/apache/seata/config/ConfigurationCache.java +++ b/config/seata-config-core/src/main/java/org/apache/seata/config/ConfigurationCache.java @@ -28,8 +28,6 @@ import net.bytebuddy.implementation.InvocationHandlerAdapter; import net.bytebuddy.matcher.ElementMatchers; -/** - */ public class ConfigurationCache implements ConfigurationChangeListener { private static final String METHOD_PREFIX = "get"; diff --git a/config/seata-config-core/src/main/java/org/apache/seata/config/FileConfigFactory.java b/config/seata-config-core/src/main/java/org/apache/seata/config/FileConfigFactory.java index 789ec3addf7..0359b38c180 100644 --- a/config/seata-config-core/src/main/java/org/apache/seata/config/FileConfigFactory.java +++ b/config/seata-config-core/src/main/java/org/apache/seata/config/FileConfigFactory.java @@ -23,8 +23,6 @@ import java.util.LinkedHashMap; import java.util.Set; -/** - */ public class FileConfigFactory { public static final String DEFAULT_TYPE = "CONF"; diff --git a/config/seata-config-core/src/main/java/org/apache/seata/config/exception/ConfigNotFoundException.java b/config/seata-config-core/src/main/java/org/apache/seata/config/exception/ConfigNotFoundException.java index f54ce892a54..f7319f61563 100644 --- a/config/seata-config-core/src/main/java/org/apache/seata/config/exception/ConfigNotFoundException.java +++ b/config/seata-config-core/src/main/java/org/apache/seata/config/exception/ConfigNotFoundException.java @@ -16,8 +16,7 @@ */ package org.apache.seata.config.exception; -/** - */ + public class ConfigNotFoundException extends RuntimeException { public ConfigNotFoundException() { diff --git a/config/seata-config-core/src/main/java/org/apache/seata/config/file/FileConfig.java b/config/seata-config-core/src/main/java/org/apache/seata/config/file/FileConfig.java index 16bae019095..75bf4cecd3a 100644 --- a/config/seata-config-core/src/main/java/org/apache/seata/config/file/FileConfig.java +++ b/config/seata-config-core/src/main/java/org/apache/seata/config/file/FileConfig.java @@ -18,8 +18,7 @@ import java.util.Map; -/** - */ + public interface FileConfig { /** * @param path path expression diff --git a/config/seata-config-core/src/main/java/org/apache/seata/config/file/SimpleFileConfig.java b/config/seata-config-core/src/main/java/org/apache/seata/config/file/SimpleFileConfig.java index 18f8aefe3dc..aad10f4b839 100644 --- a/config/seata-config-core/src/main/java/org/apache/seata/config/file/SimpleFileConfig.java +++ b/config/seata-config-core/src/main/java/org/apache/seata/config/file/SimpleFileConfig.java @@ -28,8 +28,7 @@ import java.util.HashMap; import java.util.Map; -/** - */ + @LoadLevel(name = FileConfigFactory.DEFAULT_TYPE,scope = Scope.PROTOTYPE) public class SimpleFileConfig implements FileConfig { diff --git a/config/seata-config-core/src/main/java/org/apache/seata/config/file/YamlFileConfig.java b/config/seata-config-core/src/main/java/org/apache/seata/config/file/YamlFileConfig.java index c8dedbc4abb..a58dcdbb1df 100644 --- a/config/seata-config-core/src/main/java/org/apache/seata/config/file/YamlFileConfig.java +++ b/config/seata-config-core/src/main/java/org/apache/seata/config/file/YamlFileConfig.java @@ -31,8 +31,7 @@ import java.util.HashMap; import java.util.Map; -/** - */ + @LoadLevel(name = FileConfigFactory.YAML_TYPE, order = 1, scope = Scope.PROTOTYPE) public class YamlFileConfig implements FileConfig { diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigFutureTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigFutureTest.java index 97c672ca9ac..b7e908f57a4 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigFutureTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigFutureTest.java @@ -27,8 +27,7 @@ import java.util.concurrent.ExecutionException; import java.util.concurrent.TimeoutException; -/** - */ + class ConfigFutureTest { diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigProperty.java b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigProperty.java index f3cf8079595..6ac3103c29a 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigProperty.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigProperty.java @@ -16,8 +16,7 @@ */ package org.apache.seata.config; -/** - */ + public interface ConfigProperty { final String ENV_PROPERTY_KEY = "seataEnv"; final String SYSTEM_PROPERTY_SEATA_CONFIG_NAME = "seata.config.name"; diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigTypeTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigTypeTest.java index 6869fe8c708..d0517065ead 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigTypeTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigTypeTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class ConfigTypeTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationCacheTests.java b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationCacheTests.java index 563bd6cfb03..c26ab4eb3b7 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationCacheTests.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationCacheTests.java @@ -27,8 +27,7 @@ import java.util.HashSet; import java.util.Map; -/** - */ + public class ConfigurationCacheTests { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationChangeEventTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationChangeEventTest.java index 1210daed056..56a32f21870 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationChangeEventTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/ConfigurationChangeEventTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class ConfigurationChangeEventTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/FileConfigurationTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/FileConfigurationTest.java index 036b71aa00d..1be77f1a112 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/FileConfigurationTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/FileConfigurationTest.java @@ -23,8 +23,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -/** - */ + class FileConfigurationTest { diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/ProConfigurationFactoryTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/ProConfigurationFactoryTest.java index a1a8365d4cd..aaa685dffad 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/ProConfigurationFactoryTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/ProConfigurationFactoryTest.java @@ -20,8 +20,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class ProConfigurationFactoryTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/RegistryConfigurationFactoryTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/RegistryConfigurationFactoryTest.java index 27b725d0b19..b04a7b8fdd6 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/RegistryConfigurationFactoryTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/RegistryConfigurationFactoryTest.java @@ -20,8 +20,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class RegistryConfigurationFactoryTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/YamlConfigurationFactoryTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/YamlConfigurationFactoryTest.java index a0faac0ab05..2c8958d73c7 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/YamlConfigurationFactoryTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/YamlConfigurationFactoryTest.java @@ -20,8 +20,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class YamlConfigurationFactoryTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/file/SimpleFileConfigTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/file/SimpleFileConfigTest.java index d2dcac2583e..4716237066f 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/file/SimpleFileConfigTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/file/SimpleFileConfigTest.java @@ -21,8 +21,7 @@ import java.io.File; -/** - */ + class SimpleFileConfigTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/file/YamlFileConfigTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/file/YamlFileConfigTest.java index e27ca07b581..67e61c93cfc 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/file/YamlFileConfigTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/file/YamlFileConfigTest.java @@ -23,8 +23,7 @@ import java.io.IOException; -/** - */ + class YamlFileConfigTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ConfigDataTypeTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ConfigDataTypeTest.java index a21aedd1da4..924e227ad88 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ConfigDataTypeTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ConfigDataTypeTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class ConfigDataTypeTest { @Test diff --git a/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ProcessorPropertiesTest.java b/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ProcessorPropertiesTest.java index ec4ea510efe..2180e3a65eb 100644 --- a/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ProcessorPropertiesTest.java +++ b/config/seata-config-core/src/test/java/org/apache/seata/config/processor/ProcessorPropertiesTest.java @@ -22,8 +22,7 @@ import java.io.IOException; import java.util.Properties; -/** - */ + class ProcessorPropertiesTest { @Test diff --git a/config/seata-config-custom/src/main/java/org/apache/seata/config/custom/CustomConfigurationProvider.java b/config/seata-config-custom/src/main/java/org/apache/seata/config/custom/CustomConfigurationProvider.java index 4c6945f4837..4970366fbd6 100644 --- a/config/seata-config-custom/src/main/java/org/apache/seata/config/custom/CustomConfigurationProvider.java +++ b/config/seata-config-custom/src/main/java/org/apache/seata/config/custom/CustomConfigurationProvider.java @@ -27,8 +27,7 @@ import java.util.stream.Stream; -/** - */ + @LoadLevel(name = "Custom") public class CustomConfigurationProvider implements ConfigurationProvider { @Override diff --git a/config/seata-config-custom/src/test/java/org/apache/seata/config/ConfigurationTest.java b/config/seata-config-custom/src/test/java/org/apache/seata/config/ConfigurationTest.java index 074043545fb..f8be7c3f849 100644 --- a/config/seata-config-custom/src/test/java/org/apache/seata/config/ConfigurationTest.java +++ b/config/seata-config-custom/src/test/java/org/apache/seata/config/ConfigurationTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + class ConfigurationTest { private static final String NULL_POSTFIX = "_null"; diff --git a/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationProviderForTest.java b/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationProviderForTest.java index fbdb9701eee..71ecfab614f 100644 --- a/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationProviderForTest.java +++ b/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationProviderForTest.java @@ -18,8 +18,7 @@ import org.apache.seata.common.loader.LoadLevel; -/** - */ + @LoadLevel(name = "forTest") public class CustomConfigurationProviderForTest implements ConfigurationProvider { @Override diff --git a/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationTest.java b/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationTest.java index 5f0a5549d91..b246b25f88c 100644 --- a/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationTest.java +++ b/config/seata-config-custom/src/test/java/org/apache/seata/config/CustomConfigurationTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class CustomConfigurationTest { @Test public void testCustomConfigLoad() throws Exception { diff --git a/config/seata-config-etcd3/src/main/java/org/apache/seata/config/etcd3/EtcdConfigurationProvider.java b/config/seata-config-etcd3/src/main/java/org/apache/seata/config/etcd3/EtcdConfigurationProvider.java index 85daa611130..16aefab3be2 100644 --- a/config/seata-config-etcd3/src/main/java/org/apache/seata/config/etcd3/EtcdConfigurationProvider.java +++ b/config/seata-config-etcd3/src/main/java/org/apache/seata/config/etcd3/EtcdConfigurationProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.config.Configuration; import org.apache.seata.config.ConfigurationProvider; -/** - */ + @LoadLevel(name = "Etcd3", order = 1) public class EtcdConfigurationProvider implements ConfigurationProvider { @Override diff --git a/config/seata-config-nacos/src/main/java/org/apache/seata/config/nacos/NacosConfigurationProvider.java b/config/seata-config-nacos/src/main/java/org/apache/seata/config/nacos/NacosConfigurationProvider.java index fa859d02073..5e88a0c7756 100644 --- a/config/seata-config-nacos/src/main/java/org/apache/seata/config/nacos/NacosConfigurationProvider.java +++ b/config/seata-config-nacos/src/main/java/org/apache/seata/config/nacos/NacosConfigurationProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.config.Configuration; import org.apache.seata.config.ConfigurationProvider; -/** - */ + @LoadLevel(name = "Nacos", order = 1) public class NacosConfigurationProvider implements ConfigurationProvider { @Override diff --git a/config/seata-config-zk/src/main/java/org/apache/seata/config/zk/ZookeeperConfigurationProvider.java b/config/seata-config-zk/src/main/java/org/apache/seata/config/zk/ZookeeperConfigurationProvider.java index fd3e8f01481..06ff9d28b41 100644 --- a/config/seata-config-zk/src/main/java/org/apache/seata/config/zk/ZookeeperConfigurationProvider.java +++ b/config/seata-config-zk/src/main/java/org/apache/seata/config/zk/ZookeeperConfigurationProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.config.Configuration; import org.apache.seata.config.ConfigurationProvider; -/** - */ + @LoadLevel(name = "ZK", order = 1) public class ZookeeperConfigurationProvider implements ConfigurationProvider { @Override diff --git a/console/src/main/java/org/apache/seata/console/config/JacksonConfig.java b/console/src/main/java/org/apache/seata/console/config/JacksonConfig.java index ef25f8ba821..b930d6316e6 100644 --- a/console/src/main/java/org/apache/seata/console/config/JacksonConfig.java +++ b/console/src/main/java/org/apache/seata/console/config/JacksonConfig.java @@ -25,8 +25,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -/** - */ + @Configuration(proxyBeanMethods = false) public class JacksonConfig { diff --git a/core/src/main/java/org/apache/seata/core/auth/AuthSigner.java b/core/src/main/java/org/apache/seata/core/auth/AuthSigner.java index 7e9bdeaf24a..a89d1aa0820 100644 --- a/core/src/main/java/org/apache/seata/core/auth/AuthSigner.java +++ b/core/src/main/java/org/apache/seata/core/auth/AuthSigner.java @@ -16,8 +16,7 @@ */ package org.apache.seata.core.auth; -/** - */ + public interface AuthSigner { String sign(String data, String key); diff --git a/core/src/main/java/org/apache/seata/core/auth/DefaultAuthSigner.java b/core/src/main/java/org/apache/seata/core/auth/DefaultAuthSigner.java index 8b6c153058c..038eda06e9f 100644 --- a/core/src/main/java/org/apache/seata/core/auth/DefaultAuthSigner.java +++ b/core/src/main/java/org/apache/seata/core/auth/DefaultAuthSigner.java @@ -19,8 +19,7 @@ import org.apache.seata.common.loader.LoadLevel; import org.apache.seata.common.util.StringUtils; -/** - */ + @LoadLevel(name = "defaultAuthSigner", order = 100) public class DefaultAuthSigner implements AuthSigner { diff --git a/core/src/main/java/org/apache/seata/core/compressor/Compressor.java b/core/src/main/java/org/apache/seata/core/compressor/Compressor.java index 138fd398f7a..9c50b300aee 100644 --- a/core/src/main/java/org/apache/seata/core/compressor/Compressor.java +++ b/core/src/main/java/org/apache/seata/core/compressor/Compressor.java @@ -16,8 +16,7 @@ */ package org.apache.seata.core.compressor; -/** - */ + public interface Compressor { /** diff --git a/core/src/main/java/org/apache/seata/core/compressor/CompressorType.java b/core/src/main/java/org/apache/seata/core/compressor/CompressorType.java index 90949aacdb3..ee2d370d422 100644 --- a/core/src/main/java/org/apache/seata/core/compressor/CompressorType.java +++ b/core/src/main/java/org/apache/seata/core/compressor/CompressorType.java @@ -16,8 +16,7 @@ */ package org.apache.seata.core.compressor; -/** - */ + public enum CompressorType { /** diff --git a/core/src/main/java/org/apache/seata/core/exception/DecodeException.java b/core/src/main/java/org/apache/seata/core/exception/DecodeException.java index 7773f76a25d..72459a04daf 100644 --- a/core/src/main/java/org/apache/seata/core/exception/DecodeException.java +++ b/core/src/main/java/org/apache/seata/core/exception/DecodeException.java @@ -16,8 +16,7 @@ */ package org.apache.seata.core.exception; -/** - */ + public class DecodeException extends Exception { public DecodeException(Throwable throwable) { diff --git a/core/src/main/java/org/apache/seata/core/logger/StackTraceLogger.java b/core/src/main/java/org/apache/seata/core/logger/StackTraceLogger.java index 7d554c9bbf5..c6f54dbfbfd 100644 --- a/core/src/main/java/org/apache/seata/core/logger/StackTraceLogger.java +++ b/core/src/main/java/org/apache/seata/core/logger/StackTraceLogger.java @@ -27,8 +27,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_LOG_EXCEPTION_RATE; -/** - */ + public final class StackTraceLogger { private static final Configuration CONFIG = ConfigurationFactory.getInstance(); diff --git a/core/src/main/java/org/apache/seata/core/model/GlobalLockConfig.java b/core/src/main/java/org/apache/seata/core/model/GlobalLockConfig.java index a14f0d5770e..14962b32543 100644 --- a/core/src/main/java/org/apache/seata/core/model/GlobalLockConfig.java +++ b/core/src/main/java/org/apache/seata/core/model/GlobalLockConfig.java @@ -18,8 +18,7 @@ import org.apache.seata.common.LockStrategyMode; -/** - */ + public class GlobalLockConfig { private int lockRetryInterval; diff --git a/core/src/main/java/org/apache/seata/core/rpc/Disposable.java b/core/src/main/java/org/apache/seata/core/rpc/Disposable.java index e629326b0ac..22c73693634 100644 --- a/core/src/main/java/org/apache/seata/core/rpc/Disposable.java +++ b/core/src/main/java/org/apache/seata/core/rpc/Disposable.java @@ -16,9 +16,7 @@ */ package org.apache.seata.core.rpc; -/** - * - */ + public interface Disposable { void destroy(); diff --git a/core/src/main/java/org/apache/seata/core/rpc/hook/RpcHook.java b/core/src/main/java/org/apache/seata/core/rpc/hook/RpcHook.java index 5aece4a55bf..950c139877e 100644 --- a/core/src/main/java/org/apache/seata/core/rpc/hook/RpcHook.java +++ b/core/src/main/java/org/apache/seata/core/rpc/hook/RpcHook.java @@ -18,8 +18,7 @@ import org.apache.seata.core.protocol.RpcMessage; -/** - */ + public interface RpcHook { void doBeforeRequest(String remoteAddr, RpcMessage request); diff --git a/core/src/main/java/org/apache/seata/core/rpc/hook/StatusRpcHook.java b/core/src/main/java/org/apache/seata/core/rpc/hook/StatusRpcHook.java index b5b07f65b35..b73bf6ad542 100644 --- a/core/src/main/java/org/apache/seata/core/rpc/hook/StatusRpcHook.java +++ b/core/src/main/java/org/apache/seata/core/rpc/hook/StatusRpcHook.java @@ -19,8 +19,7 @@ import org.apache.seata.common.rpc.RpcStatus; import org.apache.seata.core.protocol.RpcMessage; -/** - */ + public class StatusRpcHook implements RpcHook { @Override diff --git a/core/src/main/java/org/apache/seata/core/rpc/netty/ChannelUtil.java b/core/src/main/java/org/apache/seata/core/rpc/netty/ChannelUtil.java index c2017120c1a..10273a7adf9 100644 --- a/core/src/main/java/org/apache/seata/core/rpc/netty/ChannelUtil.java +++ b/core/src/main/java/org/apache/seata/core/rpc/netty/ChannelUtil.java @@ -22,8 +22,7 @@ import org.slf4j.LoggerFactory; import java.net.SocketAddress; -/** - */ + public class ChannelUtil { private static final Logger LOGGER = LoggerFactory.getLogger(ChannelUtil.class); diff --git a/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/BaseDistributedLockSql.java b/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/BaseDistributedLockSql.java index 685497e82f0..fde17fbebbd 100644 --- a/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/BaseDistributedLockSql.java +++ b/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/BaseDistributedLockSql.java @@ -18,8 +18,7 @@ import org.apache.seata.core.constants.ServerTableColumnsName; -/** - */ + public class BaseDistributedLockSql implements DistributedLockSql { protected static final String DISTRIBUTED_LOCK_TABLE_PLACE_HOLD = " #distributed_lock_table# "; diff --git a/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/DistributedLockSqlFactory.java b/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/DistributedLockSqlFactory.java index 9f3312f4685..f6193e8bd06 100644 --- a/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/DistributedLockSqlFactory.java +++ b/core/src/main/java/org/apache/seata/core/store/db/sql/distributed/lock/DistributedLockSqlFactory.java @@ -16,8 +16,7 @@ */ package org.apache.seata.core.store.db.sql.distributed.lock; -/** - */ + public class DistributedLockSqlFactory { private static final DistributedLockSql DISTRIBUTED_LOCK_SQL = new BaseDistributedLockSql(); diff --git a/core/src/main/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactory.java b/core/src/main/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactory.java index 2d307916e1c..5b1d3575d32 100644 --- a/core/src/main/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactory.java +++ b/core/src/main/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactory.java @@ -22,8 +22,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -/** - */ + public class LogStoreSqlsFactory { private static Map LOG_STORE_SQLS_MAP = new ConcurrentHashMap<>(); diff --git a/core/src/test/java/org/apache/seata/core/model/TransactionExceptionCodeTest.java b/core/src/test/java/org/apache/seata/core/model/TransactionExceptionCodeTest.java index 746b00b10f2..424f2d6426d 100644 --- a/core/src/test/java/org/apache/seata/core/model/TransactionExceptionCodeTest.java +++ b/core/src/test/java/org/apache/seata/core/model/TransactionExceptionCodeTest.java @@ -20,8 +20,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class TransactionExceptionCodeTest { private static final int BEGIN_CODE = 1; private static final int NONE = 99; diff --git a/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackRequestTest.java b/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackRequestTest.java index 6bfed7a2544..753dc4ca2dc 100644 --- a/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackRequestTest.java +++ b/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackRequestTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class BranchRollbackRequestTest { @Test public void toStringTest() { diff --git a/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackResponseTest.java b/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackResponseTest.java index aa2f1f826a6..7b27e00bd03 100644 --- a/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackResponseTest.java +++ b/core/src/test/java/org/apache/seata/core/protocol/transaction/BranchRollbackResponseTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class BranchRollbackResponseTest { @Test public void toStringTest() { diff --git a/core/src/test/java/org/apache/seata/core/rpc/netty/NettyPoolKeyTest.java b/core/src/test/java/org/apache/seata/core/rpc/netty/NettyPoolKeyTest.java index 6782931e2b7..f81cc0bf547 100644 --- a/core/src/test/java/org/apache/seata/core/rpc/netty/NettyPoolKeyTest.java +++ b/core/src/test/java/org/apache/seata/core/rpc/netty/NettyPoolKeyTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -/** - */ + public class NettyPoolKeyTest { private NettyPoolKey nettyPoolKey; diff --git a/core/src/test/java/org/apache/seata/core/serializer/SerializerSecurityRegistryTest.java b/core/src/test/java/org/apache/seata/core/serializer/SerializerSecurityRegistryTest.java index cdab0511ce3..ff396ebee16 100644 --- a/core/src/test/java/org/apache/seata/core/serializer/SerializerSecurityRegistryTest.java +++ b/core/src/test/java/org/apache/seata/core/serializer/SerializerSecurityRegistryTest.java @@ -24,8 +24,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class SerializerSecurityRegistryTest { @Test public void getAllowClassType() { diff --git a/core/src/test/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactoryTest.java b/core/src/test/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactoryTest.java index 31c16ff7a8f..f3b9421862e 100644 --- a/core/src/test/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactoryTest.java +++ b/core/src/test/java/org/apache/seata/core/store/db/sql/log/LogStoreSqlsFactoryTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class LogStoreSqlsFactoryTest { private static LogStoreSqls mysqlLog = LogStoreSqlsFactory.getLogStoreSqls("mysql"); diff --git a/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulListener.java b/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulListener.java index 534793686ff..d2e3ce5c9bd 100644 --- a/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulListener.java +++ b/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulListener.java @@ -20,8 +20,7 @@ import java.util.List; -/** - */ + public interface ConsulListener { /** * on event diff --git a/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryProvider.java b/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryProvider.java index f018f26425f..e1ba12c0df4 100644 --- a/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryProvider.java +++ b/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.discovery.registry.RegistryProvider; import org.apache.seata.discovery.registry.RegistryService; -/** - */ + @LoadLevel(name = "Consul", order = 1) public class ConsulRegistryProvider implements RegistryProvider { @Override diff --git a/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImpl.java b/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImpl.java index d0a55f7d61b..e44ac33b3aa 100644 --- a/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImpl.java +++ b/discovery/seata-discovery-consul/src/main/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImpl.java @@ -49,8 +49,7 @@ import org.apache.seata.discovery.registry.RegistryHeartBeats; import org.apache.seata.discovery.registry.RegistryService; -/** - */ + public class ConsulRegistryServiceImpl implements RegistryService { private static volatile ConsulRegistryServiceImpl instance; diff --git a/discovery/seata-discovery-consul/src/test/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImplTest.java b/discovery/seata-discovery-consul/src/test/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImplTest.java index dbcefa3fb4d..7591e718a6f 100644 --- a/discovery/seata-discovery-consul/src/test/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImplTest.java +++ b/discovery/seata-discovery-consul/src/test/java/org/apache/seata/discovery/registry/consul/ConsulRegistryServiceImplTest.java @@ -25,8 +25,7 @@ import static org.mockito.Mockito.verify; -/** - */ + public class ConsulRegistryServiceImplTest { diff --git a/discovery/seata-discovery-core/src/main/java/org/apache/seata/discovery/registry/FileRegistryProvider.java b/discovery/seata-discovery-core/src/main/java/org/apache/seata/discovery/registry/FileRegistryProvider.java index d2b676f7d46..ccc3f031387 100644 --- a/discovery/seata-discovery-core/src/main/java/org/apache/seata/discovery/registry/FileRegistryProvider.java +++ b/discovery/seata-discovery-core/src/main/java/org/apache/seata/discovery/registry/FileRegistryProvider.java @@ -18,8 +18,7 @@ import org.apache.seata.common.loader.LoadLevel; -/** - */ + @LoadLevel(name = "File", order = 1) public class FileRegistryProvider implements RegistryProvider { diff --git a/discovery/seata-discovery-core/src/test/java/org/apache/seata/config/ConfigurationFactoryTest.java b/discovery/seata-discovery-core/src/test/java/org/apache/seata/config/ConfigurationFactoryTest.java index 0d38eef06c5..9f5c95f9cab 100644 --- a/discovery/seata-discovery-core/src/test/java/org/apache/seata/config/ConfigurationFactoryTest.java +++ b/discovery/seata-discovery-core/src/test/java/org/apache/seata/config/ConfigurationFactoryTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class ConfigurationFactoryTest { @Test diff --git a/discovery/seata-discovery-custom/src/main/java/org/apache/seata/discovery/registry/custom/CustomRegistryProvider.java b/discovery/seata-discovery-custom/src/main/java/org/apache/seata/discovery/registry/custom/CustomRegistryProvider.java index bf9b7472497..8025d30d695 100644 --- a/discovery/seata-discovery-custom/src/main/java/org/apache/seata/discovery/registry/custom/CustomRegistryProvider.java +++ b/discovery/seata-discovery-custom/src/main/java/org/apache/seata/discovery/registry/custom/CustomRegistryProvider.java @@ -26,8 +26,7 @@ import java.util.stream.Stream; -/** - */ + @LoadLevel(name = "Custom") public class CustomRegistryProvider implements RegistryProvider { private static final String FILE_CONFIG_KEY_PREFIX = "registry.custom.name"; diff --git a/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryProvider.java b/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryProvider.java index c021eaf8eb5..3756814d90f 100644 --- a/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryProvider.java +++ b/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.discovery.registry.RegistryProvider; import org.apache.seata.discovery.registry.RegistryService; -/** - */ + @LoadLevel(name = "Etcd3", order = 1) public class EtcdRegistryProvider implements RegistryProvider { @Override diff --git a/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryServiceImpl.java b/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryServiceImpl.java index 3526b86ab87..70e3dfe8520 100644 --- a/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryServiceImpl.java +++ b/discovery/seata-discovery-etcd3/src/main/java/org/apache/seata/discovery/registry/etcd3/EtcdRegistryServiceImpl.java @@ -59,8 +59,7 @@ import static io.netty.util.CharsetUtil.UTF_8; -/** - */ + public class EtcdRegistryServiceImpl implements RegistryService { private static final Logger LOGGER = LoggerFactory.getLogger(EtcdRegistryServiceImpl.class); diff --git a/discovery/seata-discovery-etcd3/src/test/java/org/apache/seata/discovery/registry/etcd/EtcdRegistryServiceImplTest.java b/discovery/seata-discovery-etcd3/src/test/java/org/apache/seata/discovery/registry/etcd/EtcdRegistryServiceImplTest.java index eb1695a9659..90ae8e88693 100644 --- a/discovery/seata-discovery-etcd3/src/test/java/org/apache/seata/discovery/registry/etcd/EtcdRegistryServiceImplTest.java +++ b/discovery/seata-discovery-etcd3/src/test/java/org/apache/seata/discovery/registry/etcd/EtcdRegistryServiceImplTest.java @@ -40,8 +40,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_TX_GROUP; import static org.assertj.core.api.Assertions.assertThat; -/** - */ + @Disabled public class EtcdRegistryServiceImplTest { private static final String REGISTRY_KEY_PREFIX = "registry-seata-"; diff --git a/discovery/seata-discovery-eureka/src/main/java/org/apache/seata/discovery/registry/eureka/EurekaRegistryProvider.java b/discovery/seata-discovery-eureka/src/main/java/org/apache/seata/discovery/registry/eureka/EurekaRegistryProvider.java index 5aa912d82b5..98869a27325 100644 --- a/discovery/seata-discovery-eureka/src/main/java/org/apache/seata/discovery/registry/eureka/EurekaRegistryProvider.java +++ b/discovery/seata-discovery-eureka/src/main/java/org/apache/seata/discovery/registry/eureka/EurekaRegistryProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.discovery.registry.RegistryService; import org.apache.seata.discovery.registry.RegistryProvider; -/** - */ + @LoadLevel(name = "Eureka", order = 1) public class EurekaRegistryProvider implements RegistryProvider { @Override diff --git a/discovery/seata-discovery-nacos/src/main/java/org/apache/seata/discovery/registry/nacos/NacosRegistryProvider.java b/discovery/seata-discovery-nacos/src/main/java/org/apache/seata/discovery/registry/nacos/NacosRegistryProvider.java index 1ddd340ecbd..3f797b2c67b 100644 --- a/discovery/seata-discovery-nacos/src/main/java/org/apache/seata/discovery/registry/nacos/NacosRegistryProvider.java +++ b/discovery/seata-discovery-nacos/src/main/java/org/apache/seata/discovery/registry/nacos/NacosRegistryProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.discovery.registry.RegistryService; import org.apache.seata.discovery.registry.RegistryProvider; -/** - */ + @LoadLevel(name = "Nacos", order = 1) public class NacosRegistryProvider implements RegistryProvider { @Override diff --git a/discovery/seata-discovery-raft/src/main/java/org/apache/seata/discovery/registry/raft/RaftRegistryProvider.java b/discovery/seata-discovery-raft/src/main/java/org/apache/seata/discovery/registry/raft/RaftRegistryProvider.java index 841deaa4945..5f0213ddb99 100644 --- a/discovery/seata-discovery-raft/src/main/java/org/apache/seata/discovery/registry/raft/RaftRegistryProvider.java +++ b/discovery/seata-discovery-raft/src/main/java/org/apache/seata/discovery/registry/raft/RaftRegistryProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.discovery.registry.RegistryProvider; import org.apache.seata.discovery.registry.RegistryService; -/** - */ + @LoadLevel(name = "Raft", order = 1) public class RaftRegistryProvider implements RegistryProvider { diff --git a/discovery/seata-discovery-redis/src/main/java/org/apache/seata/discovery/registry/redis/RedisRegistryProvider.java b/discovery/seata-discovery-redis/src/main/java/org/apache/seata/discovery/registry/redis/RedisRegistryProvider.java index e328ed4cf65..91cdf4ff27b 100644 --- a/discovery/seata-discovery-redis/src/main/java/org/apache/seata/discovery/registry/redis/RedisRegistryProvider.java +++ b/discovery/seata-discovery-redis/src/main/java/org/apache/seata/discovery/registry/redis/RedisRegistryProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.discovery.registry.RegistryProvider; import org.apache.seata.discovery.registry.RegistryService; -/** - */ + @LoadLevel(name = "Redis", order = 1) public class RedisRegistryProvider implements RegistryProvider { @Override diff --git a/discovery/seata-discovery-redis/src/test/java/org/apache/seata/discovery/registry/redis/RedisRegisterServiceImplTest.java b/discovery/seata-discovery-redis/src/test/java/org/apache/seata/discovery/registry/redis/RedisRegisterServiceImplTest.java index 3d3505e60e0..d1a66a9adfd 100644 --- a/discovery/seata-discovery-redis/src/test/java/org/apache/seata/discovery/registry/redis/RedisRegisterServiceImplTest.java +++ b/discovery/seata-discovery-redis/src/test/java/org/apache/seata/discovery/registry/redis/RedisRegisterServiceImplTest.java @@ -37,8 +37,7 @@ import static org.mockito.Mockito.mockStatic; import static org.mockito.Mockito.when; -/** - */ + public class RedisRegisterServiceImplTest { private static RedisRegistryServiceImpl redisRegistryService; diff --git a/discovery/seata-discovery-sofa/src/main/java/org/apache/seata/discovery/registry/sofa/SofaRegistryProvider.java b/discovery/seata-discovery-sofa/src/main/java/org/apache/seata/discovery/registry/sofa/SofaRegistryProvider.java index 148a418057d..87d5b83523b 100644 --- a/discovery/seata-discovery-sofa/src/main/java/org/apache/seata/discovery/registry/sofa/SofaRegistryProvider.java +++ b/discovery/seata-discovery-sofa/src/main/java/org/apache/seata/discovery/registry/sofa/SofaRegistryProvider.java @@ -21,8 +21,7 @@ import org.apache.seata.discovery.registry.RegistryProvider; import org.apache.seata.discovery.registry.RegistryService; -/** - */ + @LoadLevel(name = "Sofa", order = 1) public class SofaRegistryProvider implements RegistryProvider { @Override diff --git a/discovery/seata-discovery-zk/src/main/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProvider.java b/discovery/seata-discovery-zk/src/main/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProvider.java index 0d2f753d03d..91ef782b450 100644 --- a/discovery/seata-discovery-zk/src/main/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProvider.java +++ b/discovery/seata-discovery-zk/src/main/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProvider.java @@ -20,8 +20,7 @@ import org.apache.seata.discovery.registry.RegistryProvider; import org.apache.seata.discovery.registry.RegistryService; -/** - */ + @LoadLevel(name = "ZK", order = 1) public class ZookeeperRegistryProvider implements RegistryProvider { @Override diff --git a/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegisterServiceImplTest.java b/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegisterServiceImplTest.java index e0c62c736bb..cd7afa792f7 100644 --- a/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegisterServiceImplTest.java +++ b/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegisterServiceImplTest.java @@ -35,8 +35,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.function.Executable; -/** - */ + public class ZookeeperRegisterServiceImplTest { protected static TestingServer server = null; diff --git a/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProviderTest.java b/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProviderTest.java index 42b5f13da97..4b45dda052f 100644 --- a/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProviderTest.java +++ b/discovery/seata-discovery-zk/src/test/java/org/apache/seata/discovery/registry/zk/ZookeeperRegistryProviderTest.java @@ -19,8 +19,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class ZookeeperRegistryProviderTest { @Test diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/DefaultCoreDoGlobalCommitInterceptor.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/DefaultCoreDoGlobalCommitInterceptor.java index e9e9a26a5d1..64c171a5007 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/DefaultCoreDoGlobalCommitInterceptor.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/DefaultCoreDoGlobalCommitInterceptor.java @@ -30,8 +30,7 @@ import java.lang.reflect.Method; -/** - */ + public class DefaultCoreDoGlobalCommitInterceptor implements InstanceMethodsAroundInterceptor { @Override diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/NettyRemotingClientSendSyncInterceptor.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/NettyRemotingClientSendSyncInterceptor.java index aa6226d544d..1ed7c99c2e2 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/NettyRemotingClientSendSyncInterceptor.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/NettyRemotingClientSendSyncInterceptor.java @@ -34,8 +34,7 @@ import java.lang.reflect.Method; -/** - */ + public class NettyRemotingClientSendSyncInterceptor implements InstanceMethodsAroundInterceptor { @Override diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataConstants.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataConstants.java index d5fd142ae1a..d7ed9b0d47f 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataConstants.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataConstants.java @@ -25,8 +25,7 @@ import java.util.HashSet; import java.util.Set; -/** - */ + public class SWSeataConstants { private static final Set TRANSACTION_MANAGER_OPERATION_NAME_MAPPING = new HashSet<>(); diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtils.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtils.java index ff39f37d96e..633493eaca8 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtils.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtils.java @@ -23,8 +23,7 @@ import org.apache.skywalking.apm.agent.core.logging.api.LogManager; import org.apache.skywalking.apm.network.trace.component.ComponentsDefine; -/** - */ + public class SWSeataUtils { private static final ILog LOGGER = LogManager.getLogger(SWSeataUtils.class); diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SeataPluginConfig.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SeataPluginConfig.java index 015c7fccd88..8af9af338f6 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SeataPluginConfig.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/common/SeataPluginConfig.java @@ -18,8 +18,7 @@ import org.apache.skywalking.apm.agent.core.boot.PluginConfig; -/** - */ + public class SeataPluginConfig { public static class Plugin { @PluginConfig(root = SeataPluginConfig.class) diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/AbstractNettyRemotingInstrumentation.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/AbstractNettyRemotingInstrumentation.java index 696a1d2a938..755dc65e1d7 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/AbstractNettyRemotingInstrumentation.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/AbstractNettyRemotingInstrumentation.java @@ -28,8 +28,7 @@ import static net.bytebuddy.matcher.ElementMatchers.takesArguments; import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName; -/** - */ + public class AbstractNettyRemotingInstrumentation extends ClassInstanceMethodsEnhancePluginDefine { private static final String ENHANCE_CLASS = "org.apache.seata.core.rpc.netty.AbstractNettyRemoting"; diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/DefaultCoreInstrumentation.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/DefaultCoreInstrumentation.java index 25fbd13abf9..160fdf75f00 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/DefaultCoreInstrumentation.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/DefaultCoreInstrumentation.java @@ -28,8 +28,7 @@ import static net.bytebuddy.matcher.ElementMatchers.takesArguments; import static org.apache.skywalking.apm.agent.core.plugin.match.NameMatch.byName; -/** - */ + public class DefaultCoreInstrumentation extends ClassInstanceMethodsEnhancePluginDefine { private static final String ENHANCE_CLASS_TM = "org.apache.seata.server.coordinator.DefaultCore"; diff --git a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/RemotingProcessorInstrumentation.java b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/RemotingProcessorInstrumentation.java index 1bd974cf101..3f3ef565c37 100644 --- a/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/RemotingProcessorInstrumentation.java +++ b/ext/apm-seata-skywalking-plugin/src/main/java/org/apache/seata/apm/skywalking/plugin/define/RemotingProcessorInstrumentation.java @@ -26,8 +26,7 @@ import static net.bytebuddy.matcher.ElementMatchers.named; import static org.apache.skywalking.apm.agent.core.plugin.match.MultiClassNameMatch.byMultiClassMatch; -/** - */ + public class RemotingProcessorInstrumentation extends ClassInstanceMethodsEnhancePluginDefine { private static final String INTERCEPTOR_CLASS = "org.apache.seata.apm.skywalking.plugin.RemotingProcessorProcessInterceptor"; diff --git a/ext/apm-seata-skywalking-plugin/src/test/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtilsTest.java b/ext/apm-seata-skywalking-plugin/src/test/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtilsTest.java index 56842207e4a..5db382fdd35 100644 --- a/ext/apm-seata-skywalking-plugin/src/test/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtilsTest.java +++ b/ext/apm-seata-skywalking-plugin/src/test/java/org/apache/seata/apm/skywalking/plugin/common/SWSeataUtilsTest.java @@ -24,8 +24,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class SWSeataUtilsTest { @Test diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/AspectTransactional.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/AspectTransactional.java index c1655ba7235..01c750784a9 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/AspectTransactional.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/AspectTransactional.java @@ -21,8 +21,7 @@ import org.apache.seata.common.util.StringUtils; import org.apache.seata.tm.api.transaction.Propagation; -/** - */ + public class AspectTransactional { /** diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/BusinessActionContextParameterDesc.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/BusinessActionContextParameterDesc.java index cee930f9ed3..a68010fa7d7 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/BusinessActionContextParameterDesc.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/annotation/BusinessActionContextParameterDesc.java @@ -21,8 +21,7 @@ import org.apache.seata.common.util.StringUtils; import org.apache.seata.rm.tcc.api.BusinessActionContextParameter; -/** - */ + public class BusinessActionContextParameterDesc { private String paramName; private int index; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/event/DegradeCheckEvent.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/event/DegradeCheckEvent.java index bb0585fbea1..472e966d90e 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/event/DegradeCheckEvent.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/event/DegradeCheckEvent.java @@ -18,8 +18,7 @@ import org.apache.seata.core.event.Event; -/** - */ + public class DegradeCheckEvent implements Event { private boolean requestSuccess; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/DefaultCommonFenceHandler.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/DefaultCommonFenceHandler.java index 8015891c2d6..3e8307628d7 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/DefaultCommonFenceHandler.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/DefaultCommonFenceHandler.java @@ -21,8 +21,7 @@ import org.apache.seata.common.executor.Callback; -/** - */ + public class DefaultCommonFenceHandler implements FenceHandler { private FenceHandler fenceHandler; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/FenceHandler.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/FenceHandler.java index 150bbf7c1d9..11978290bff 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/FenceHandler.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/fence/FenceHandler.java @@ -21,8 +21,7 @@ import java.lang.reflect.Method; import java.util.Date; -/** - */ + public interface FenceHandler { Object prepareFence(String xid, Long branchId, String actionName, Callback targetCallback); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/DefaultInvocationWrapper.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/DefaultInvocationWrapper.java index 151195b9ad3..41320af94a3 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/DefaultInvocationWrapper.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/DefaultInvocationWrapper.java @@ -19,8 +19,7 @@ import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; -/** - */ + public class DefaultInvocationWrapper implements InvocationWrapper { private Object proxy; private Object delegate; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/InvocationWrapper.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/InvocationWrapper.java index 290102d048c..ff24c27210b 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/InvocationWrapper.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/InvocationWrapper.java @@ -18,8 +18,7 @@ import java.lang.reflect.Method; -/** - */ + public interface InvocationWrapper { Method getMethod(); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/AbstractProxyInvocationHandler.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/AbstractProxyInvocationHandler.java index 41a8f488752..f6c3a533859 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/AbstractProxyInvocationHandler.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/AbstractProxyInvocationHandler.java @@ -19,8 +19,7 @@ import org.apache.seata.common.util.CollectionUtils; import org.apache.seata.integration.tx.api.interceptor.InvocationWrapper; -/** - */ + public abstract class AbstractProxyInvocationHandler implements ProxyInvocationHandler { protected abstract Object doInvoke(InvocationWrapper invocation) throws Throwable; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/DefaultInvocationHandler.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/DefaultInvocationHandler.java index ef4f44ed54f..cc2c7350f38 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/DefaultInvocationHandler.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/DefaultInvocationHandler.java @@ -22,8 +22,7 @@ import java.lang.reflect.InvocationHandler; import java.lang.reflect.Method; -/** - */ + public class DefaultInvocationHandler implements InvocationHandler { private ProxyInvocationHandler proxyInvocationHandler; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/ProxyInvocationHandler.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/ProxyInvocationHandler.java index ed490892d27..8238d8526ba 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/ProxyInvocationHandler.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/handler/ProxyInvocationHandler.java @@ -22,8 +22,7 @@ import org.apache.seata.integration.tx.api.interceptor.SeataInterceptor; import org.apache.seata.integration.tx.api.interceptor.SeataInterceptorPosition; -/** - */ + public interface ProxyInvocationHandler extends SeataInterceptor { Set getMethodsToProxy(); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultResourceRegisterParser.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultResourceRegisterParser.java index dacb5614dbb..deead0b6e20 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultResourceRegisterParser.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultResourceRegisterParser.java @@ -22,8 +22,7 @@ import java.util.ArrayList; import java.util.List; -/** - */ + public class DefaultResourceRegisterParser { protected static List allRegisterResourceParsers = new ArrayList<>(); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultTargetClassParser.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultTargetClassParser.java index 13136fdf073..a83a4c20fe1 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultTargetClassParser.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/DefaultTargetClassParser.java @@ -22,8 +22,7 @@ import java.util.ArrayList; import java.util.List; -/** - */ + public class DefaultTargetClassParser implements TargetClassParser { protected static List allTargetClassParsers = new ArrayList<>(); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParser.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParser.java index 0aee5fe7e52..3026615db9e 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParser.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParser.java @@ -31,8 +31,7 @@ import org.apache.seata.spring.annotation.GlobalTransactional; import org.apache.seata.tm.api.FailureHandlerHolder; -/** - */ + public class GlobalTransactionalInterceptorParser implements InterfaceParser { private final Set methodsToProxy = new HashSet<>(); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/InterfaceParser.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/InterfaceParser.java index 72ee879ec2f..d0e843f0456 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/InterfaceParser.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/InterfaceParser.java @@ -18,8 +18,7 @@ import org.apache.seata.integration.tx.api.interceptor.handler.ProxyInvocationHandler; -/** - */ + public interface InterfaceParser { ProxyInvocationHandler parserInterfaceToProxy(Object target, String objectName) throws Exception; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/RegisterResourceParser.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/RegisterResourceParser.java index 538993341cd..1300be74454 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/RegisterResourceParser.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/RegisterResourceParser.java @@ -16,8 +16,7 @@ */ package org.apache.seata.integration.tx.api.interceptor.parser; -/** - */ + public interface RegisterResourceParser { void registerResource(Object target, String beanName); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/TargetClassParser.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/TargetClassParser.java index 7bdaea584c0..7390e4c4bce 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/TargetClassParser.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/interceptor/parser/TargetClassParser.java @@ -16,8 +16,7 @@ */ package org.apache.seata.integration.tx.api.interceptor.parser; -/** - */ + public interface TargetClassParser { Class findTargetClass(Object target) throws Exception; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParser.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParser.java index b5557085ec0..28db0f9fe49 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParser.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParser.java @@ -18,8 +18,7 @@ import java.io.IOException; -/** - */ + public interface JsonParser { String toJSONString(Object object) throws IOException; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserFactory.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserFactory.java index 834bc379712..126f7c59d41 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserFactory.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserFactory.java @@ -24,8 +24,7 @@ import org.apache.seata.common.loader.EnhancedServiceLoader; import org.apache.seata.common.util.CollectionUtils; -/** - */ + public class JsonParserFactory { private static final Map JSON_PARSER_INSTANCES = new ConcurrentHashMap<>(); diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserWrap.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserWrap.java index c47dfe0ace2..3037990cc52 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserWrap.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/json/JsonParserWrap.java @@ -18,8 +18,7 @@ import org.apache.seata.common.exception.JsonParseException; -/** - */ + public class JsonParserWrap implements JsonParser { private JsonParser jsonParser; diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/JsonUtil.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/JsonUtil.java index 1b4c26080f4..03bb422c9f6 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/JsonUtil.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/JsonUtil.java @@ -24,8 +24,7 @@ import org.apache.seata.config.ConfigurationFactory; import org.apache.seata.integration.tx.api.json.JsonParserFactory; -/** - */ + public class JsonUtil { private static final String CONFIG_JSON_PARSER_NAME = diff --git a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/ProxyUtil.java b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/ProxyUtil.java index bf22a55c527..964840c993a 100644 --- a/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/ProxyUtil.java +++ b/integration-tx-api/src/main/java/org/apache/seata/integration/tx/api/util/ProxyUtil.java @@ -27,8 +27,7 @@ import static net.bytebuddy.matcher.ElementMatchers.isDeclaredBy; -/** - */ + public class ProxyUtil { private static final Map PROXYED_SET = new HashMap<>(); diff --git a/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/TestAction.java b/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/TestAction.java index 516274ebcca..e6b40003d29 100644 --- a/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/TestAction.java +++ b/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/TestAction.java @@ -21,8 +21,7 @@ import org.apache.seata.rm.tcc.api.BusinessActionContext; import org.apache.seata.rm.tcc.api.BusinessActionContextParameter; -/** - */ + public interface TestAction { diff --git a/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParserTest.java b/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParserTest.java index 15c0c51f100..a829b4df151 100644 --- a/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParserTest.java +++ b/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/GlobalTransactionalInterceptorParserTest.java @@ -20,8 +20,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class GlobalTransactionalInterceptorParserTest { @Test diff --git a/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/ProxyUtilsGlobalTransactionalTest.java b/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/ProxyUtilsGlobalTransactionalTest.java index b4e95f0b055..933ceb6bfe1 100644 --- a/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/ProxyUtilsGlobalTransactionalTest.java +++ b/integration-tx-api/src/test/java/org/apache/seata/integration/tx/api/interceptor/parser/ProxyUtilsGlobalTransactionalTest.java @@ -26,8 +26,7 @@ import java.util.concurrent.atomic.AtomicReference; -/** - */ + public class ProxyUtilsGlobalTransactionalTest { private final String DEFAULT_XID = "default_xid"; diff --git a/integration/brpc/src/test/java/org/apache/seata/integration/brpc/TransactionInterceptorTest.java b/integration/brpc/src/test/java/org/apache/seata/integration/brpc/TransactionInterceptorTest.java index 25f4ae342ba..975502f7b1d 100644 --- a/integration/brpc/src/test/java/org/apache/seata/integration/brpc/TransactionInterceptorTest.java +++ b/integration/brpc/src/test/java/org/apache/seata/integration/brpc/TransactionInterceptorTest.java @@ -31,8 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class TransactionInterceptorTest { /** diff --git a/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/EchoService.java b/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/EchoService.java index 39e92a5b1d6..297d25032f9 100644 --- a/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/EchoService.java +++ b/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/EchoService.java @@ -19,8 +19,7 @@ import com.baidu.brpc.protocol.BrpcMeta; import org.apache.seata.integration.brpc.dto.Echo; -/** - */ + public interface EchoService { diff --git a/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/impl/EchoServiceImpl.java b/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/impl/EchoServiceImpl.java index 2b94418688e..41b8845d7b5 100644 --- a/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/impl/EchoServiceImpl.java +++ b/integration/brpc/src/test/java/org/apache/seata/integration/brpc/server/impl/EchoServiceImpl.java @@ -23,8 +23,7 @@ import java.util.Objects; -/** - */ + public class EchoServiceImpl implements EchoService { @Override public Echo.EchoResponse echo(Echo.EchoRequest request) { diff --git a/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/AlibabaDubboTransactionPropagationFilterTest.java b/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/AlibabaDubboTransactionPropagationFilterTest.java index 6f0c3248d86..f627d35f715 100644 --- a/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/AlibabaDubboTransactionPropagationFilterTest.java +++ b/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/AlibabaDubboTransactionPropagationFilterTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class AlibabaDubboTransactionPropagationFilterTest { private static final String DEFAULT_XID = "1234567890"; diff --git a/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/mock/MockInvoker.java b/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/mock/MockInvoker.java index f1ce6b8098b..d17c553958b 100644 --- a/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/mock/MockInvoker.java +++ b/integration/dubbo-alibaba/src/test/java/org/apache/seata/integration/dubbo/alibaba/mock/MockInvoker.java @@ -22,8 +22,7 @@ import com.alibaba.dubbo.rpc.Result; import com.alibaba.dubbo.rpc.RpcException; -/** - */ + public class MockInvoker implements Invoker { private Runnable runnable; diff --git a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/GrpcHeaderKey.java b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/GrpcHeaderKey.java index f36594c8190..4e1297030ef 100644 --- a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/GrpcHeaderKey.java +++ b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/GrpcHeaderKey.java @@ -19,8 +19,7 @@ import io.grpc.Metadata; import org.apache.seata.core.context.RootContext; -/** - */ + public interface GrpcHeaderKey { Metadata.Key XID_HEADER_KEY = Metadata.Key.of(RootContext.KEY_XID, Metadata.ASCII_STRING_MARSHALLER); diff --git a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/client/ClientTransactionInterceptor.java b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/client/ClientTransactionInterceptor.java index 82a7c08e621..02737f939a1 100644 --- a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/client/ClientTransactionInterceptor.java +++ b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/client/ClientTransactionInterceptor.java @@ -27,8 +27,7 @@ import org.apache.seata.core.context.RootContext; import org.apache.seata.integration.grpc.interceptor.GrpcHeaderKey; -/** - */ + public class ClientTransactionInterceptor implements ClientInterceptor { @Override diff --git a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerListenerProxy.java b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerListenerProxy.java index 1f7b2c7776d..f83338fcc22 100644 --- a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerListenerProxy.java +++ b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerListenerProxy.java @@ -26,8 +26,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + public class ServerListenerProxy extends ServerCall.Listener { private static final Logger LOGGER = LoggerFactory.getLogger(ServerListenerProxy.class); diff --git a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerTransactionInterceptor.java b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerTransactionInterceptor.java index accf4774fed..5357ee77e5e 100644 --- a/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerTransactionInterceptor.java +++ b/integration/grpc/src/main/java/org/apache/seata/integration/grpc/interceptor/server/ServerTransactionInterceptor.java @@ -27,8 +27,7 @@ import org.apache.seata.core.context.RootContext; import org.apache.seata.integration.grpc.interceptor.GrpcHeaderKey; -/** - */ + public class ServerTransactionInterceptor implements ServerInterceptor { @Override diff --git a/integration/grpc/src/test/java/org/apache/seata/integration/grpc/interceptor/GrpcTest.java b/integration/grpc/src/test/java/org/apache/seata/integration/grpc/interceptor/GrpcTest.java index 7145e4e170a..20fdf4ee3c9 100644 --- a/integration/grpc/src/test/java/org/apache/seata/integration/grpc/interceptor/GrpcTest.java +++ b/integration/grpc/src/test/java/org/apache/seata/integration/grpc/interceptor/GrpcTest.java @@ -50,8 +50,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.verify; -/** - */ + public class GrpcTest { @Rule diff --git a/integration/http/src/test/java/org/apache/seata/integration/http/HttpTest.java b/integration/http/src/test/java/org/apache/seata/integration/http/HttpTest.java index 17806922a83..3c6dfd88dd3 100644 --- a/integration/http/src/test/java/org/apache/seata/integration/http/HttpTest.java +++ b/integration/http/src/test/java/org/apache/seata/integration/http/HttpTest.java @@ -37,8 +37,7 @@ import static org.apache.seata.integration.http.AbstractHttpExecutor.convertParamOfBean; import static org.apache.seata.integration.http.AbstractHttpExecutor.convertParamOfJsonString; -/** - */ + class HttpTest { private static final String host = "http://127.0.0.1:8081"; diff --git a/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpExecuter.java b/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpExecuter.java index 1e1282de370..478eb3a862a 100644 --- a/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpExecuter.java +++ b/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpExecuter.java @@ -26,8 +26,7 @@ import java.util.HashMap; import java.util.Map; -/** - */ + public class MockHttpExecuter extends AbstractHttpExecutor { DefaultHttpExecutor httpExecutor = DefaultHttpExecutor.getInstance(); diff --git a/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpServletRequest.java b/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpServletRequest.java index c74ec04b05f..805a20148c0 100644 --- a/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpServletRequest.java +++ b/integration/http/src/test/java/org/apache/seata/integration/http/MockHttpServletRequest.java @@ -40,8 +40,7 @@ import java.util.Locale; import java.util.Map; -/** - */ + public class MockHttpServletRequest implements HttpServletRequest { private final MockRequest myRequest; diff --git a/integration/http/src/test/java/org/apache/seata/integration/http/MockRequest.java b/integration/http/src/test/java/org/apache/seata/integration/http/MockRequest.java index 5f0c9c94149..2692e772bb7 100644 --- a/integration/http/src/test/java/org/apache/seata/integration/http/MockRequest.java +++ b/integration/http/src/test/java/org/apache/seata/integration/http/MockRequest.java @@ -23,8 +23,7 @@ import java.util.HashMap; import java.util.Map; -/** - */ + public class MockRequest { private String url; private Map header = new HashMap<>(); diff --git a/integration/http/src/test/java/org/apache/seata/integration/http/MockResponse.java b/integration/http/src/test/java/org/apache/seata/integration/http/MockResponse.java index 82403dd2d30..e47bf1a7aa4 100644 --- a/integration/http/src/test/java/org/apache/seata/integration/http/MockResponse.java +++ b/integration/http/src/test/java/org/apache/seata/integration/http/MockResponse.java @@ -20,8 +20,7 @@ import java.io.IOException; import java.io.OutputStream; -/** - */ + public class MockResponse { private OutputStream outputStream; diff --git a/integration/http/src/test/java/org/apache/seata/integration/http/MockWebServer.java b/integration/http/src/test/java/org/apache/seata/integration/http/MockWebServer.java index e42bdbc7588..4e3469fea0d 100644 --- a/integration/http/src/test/java/org/apache/seata/integration/http/MockWebServer.java +++ b/integration/http/src/test/java/org/apache/seata/integration/http/MockWebServer.java @@ -32,8 +32,7 @@ import static org.apache.seata.integration.http.AbstractHttpExecutor.convertParamOfJsonString; -/** - */ + public class MockWebServer { private Map urlServletMap = new HashMap<>(); diff --git a/integration/http/src/test/java/org/apache/seata/integration/http/ServletMapping.java b/integration/http/src/test/java/org/apache/seata/integration/http/ServletMapping.java index ff5a2c5a6a9..dbc8d805bf6 100644 --- a/integration/http/src/test/java/org/apache/seata/integration/http/ServletMapping.java +++ b/integration/http/src/test/java/org/apache/seata/integration/http/ServletMapping.java @@ -19,8 +19,7 @@ import java.util.ArrayList; import java.util.List; -/** - */ + public class ServletMapping { public static List servletMappingList = new ArrayList<>(); diff --git a/integration/motan/src/main/java/org/apache/seata/integration/motan/MotanTransactionFilter.java b/integration/motan/src/main/java/org/apache/seata/integration/motan/MotanTransactionFilter.java index b65aadf6fbb..0e9aa5a307f 100644 --- a/integration/motan/src/main/java/org/apache/seata/integration/motan/MotanTransactionFilter.java +++ b/integration/motan/src/main/java/org/apache/seata/integration/motan/MotanTransactionFilter.java @@ -30,8 +30,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + @Spi(scope = Scope.SINGLETON) @Activation(key = {MotanConstants.NODE_TYPE_SERVICE, MotanConstants.NODE_TYPE_REFERER}, sequence = 100) public class MotanTransactionFilter implements Filter { diff --git a/integration/motan/src/test/java/org/apache/seata/integration/motan/MotanTransactionFilterTest.java b/integration/motan/src/test/java/org/apache/seata/integration/motan/MotanTransactionFilterTest.java index e881138ecf7..6fdfc535a23 100644 --- a/integration/motan/src/test/java/org/apache/seata/integration/motan/MotanTransactionFilterTest.java +++ b/integration/motan/src/test/java/org/apache/seata/integration/motan/MotanTransactionFilterTest.java @@ -24,8 +24,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class MotanTransactionFilterTest { private static final String SERVICE_GROUP = "motan"; diff --git a/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDService.java b/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDService.java index 4c11d8d2120..0e9f5e31321 100644 --- a/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDService.java +++ b/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDService.java @@ -16,8 +16,7 @@ */ package org.apache.seata.integration.motan; -/** - */ + public interface XIDService { String getXid(); } diff --git a/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDServiceImpl.java b/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDServiceImpl.java index 5d431d9b8e0..336244879c1 100644 --- a/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDServiceImpl.java +++ b/integration/motan/src/test/java/org/apache/seata/integration/motan/XIDServiceImpl.java @@ -18,8 +18,7 @@ import org.apache.seata.core.context.RootContext; -/** - */ + public class XIDServiceImpl implements XIDService { @Override diff --git a/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/BaseRpcFilter.java b/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/BaseRpcFilter.java index 70152807f38..3eca6c8cd98 100644 --- a/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/BaseRpcFilter.java +++ b/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/BaseRpcFilter.java @@ -22,8 +22,7 @@ import org.apache.seata.common.util.StringUtils; import org.apache.seata.core.context.RootContext; -/** - */ + public interface BaseRpcFilter { String[] TRX_CONTEXT_KEYS = new String[] {RootContext.KEY_XID, RootContext.KEY_BRANCH_TYPE}; diff --git a/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/ProviderRpcFilter.java b/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/ProviderRpcFilter.java index 505a207069f..2e5eb1d97e7 100644 --- a/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/ProviderRpcFilter.java +++ b/integration/rpc-core/src/main/java/org/apache/seata/integration/rpc/core/ProviderRpcFilter.java @@ -23,8 +23,7 @@ import org.apache.seata.core.context.RootContext; import org.apache.seata.core.model.BranchType; -/** - */ + public interface ProviderRpcFilter extends BaseRpcFilter { String[] TRX_CONTEXT_KEYS = new String[] {RootContext.KEY_XID, RootContext.KEY_XID.toLowerCase(), diff --git a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloService.java b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloService.java index e184f28cc0d..0358d8adb33 100644 --- a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloService.java +++ b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloService.java @@ -16,8 +16,7 @@ */ package org.apache.seata.integration.sofa.rpc; -/** - */ + public interface HelloService { String sayHello(String name, int age); diff --git a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceImpl.java b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceImpl.java index f962071c4eb..6152687386a 100644 --- a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceImpl.java +++ b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceImpl.java @@ -19,8 +19,7 @@ import org.apache.seata.core.context.RootContext; import org.apache.seata.core.model.BranchType; -/** - */ + public class HelloServiceImpl implements HelloService { private String result; diff --git a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceProxy.java b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceProxy.java index 366d8c8ad20..0eac5ab1df3 100644 --- a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceProxy.java +++ b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/HelloServiceProxy.java @@ -19,8 +19,7 @@ import org.apache.seata.core.context.RootContext; import org.apache.seata.core.model.BranchType; -/** - */ + public class HelloServiceProxy implements HelloService { private String xid; diff --git a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/TransactionContextFilterTest.java b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/TransactionContextFilterTest.java index 8df14220adb..e139c83c6e8 100644 --- a/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/TransactionContextFilterTest.java +++ b/integration/sofa-rpc/src/test/java/org/apache/seata/integration/sofa/rpc/TransactionContextFilterTest.java @@ -31,8 +31,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -/** - */ + public class TransactionContextFilterTest { @Test diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbInsertOnDuplicateUpdateExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbInsertOnDuplicateUpdateExecutor.java index 1a4ea2a5b5f..7321794c217 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbInsertOnDuplicateUpdateExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbInsertOnDuplicateUpdateExecutor.java @@ -24,8 +24,7 @@ import org.apache.seata.sqlparser.SQLRecognizer; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + @LoadLevel(name = JdbcConstants.MARIADB, scope = Scope.PROTOTYPE) public class MariadbInsertOnDuplicateUpdateExecutor extends MySQLInsertOnDuplicateUpdateExecutor { diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbUpdateJoinExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbUpdateJoinExecutor.java index 5e2eb4b109d..c6042927f5b 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbUpdateJoinExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mariadb/MariadbUpdateJoinExecutor.java @@ -23,8 +23,7 @@ import org.apache.seata.rm.datasource.exec.StatementCallback; import org.apache.seata.sqlparser.SQLRecognizer; -/** - */ + public class MariadbUpdateJoinExecutor extends MySQLUpdateJoinExecutor { /** diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLInsertOnDuplicateUpdateExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLInsertOnDuplicateUpdateExecutor.java index 0368028506b..0e31ee33ffe 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLInsertOnDuplicateUpdateExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLInsertOnDuplicateUpdateExecutor.java @@ -57,8 +57,7 @@ import org.apache.seata.sqlparser.util.ColumnUtils; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + @LoadLevel(name = JdbcConstants.MYSQL, scope = Scope.PROTOTYPE) public class MySQLInsertOnDuplicateUpdateExecutor extends MySQLInsertExecutor implements Defaultable { diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLUpdateJoinExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLUpdateJoinExecutor.java index 9f12d91185e..b682105fa0a 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLUpdateJoinExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/mysql/MySQLUpdateJoinExecutor.java @@ -52,8 +52,7 @@ import org.slf4j.LoggerFactory; -/** - */ + public class MySQLUpdateJoinExecutor extends UpdateExecutor { protected final Logger logger = LoggerFactory.getLogger(getClass()); private static final String DOT = "."; diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/oracle/OracleJdbcType.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/oracle/OracleJdbcType.java index 5537fadd236..0d266845f79 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/oracle/OracleJdbcType.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/exec/oracle/OracleJdbcType.java @@ -16,8 +16,7 @@ */ package org.apache.seata.rm.datasource.exec.oracle; -/** - */ + public class OracleJdbcType { public static final int TIMESTAMP_WITH_TIME_ZONE = -101; diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/SQLVisitorFactory.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/SQLVisitorFactory.java index 064f2f3749c..e9562818031 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/SQLVisitorFactory.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/sql/SQLVisitorFactory.java @@ -25,8 +25,7 @@ import java.util.List; -/** - */ + public class SQLVisitorFactory { /** * SQLRecognizerFactory. diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/AbstractUndoLogManager.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/AbstractUndoLogManager.java index ca5d5970c41..6c2de1681f2 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/AbstractUndoLogManager.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/AbstractUndoLogManager.java @@ -52,8 +52,7 @@ import static org.apache.seata.core.exception.TransactionExceptionCode.BranchRollbackFailed_Retriable; import static org.apache.seata.core.exception.TransactionExceptionCode.BranchRollbackFailed_Unretriable; -/** - */ + public abstract class AbstractUndoLogManager implements UndoLogManager { private static final Logger LOGGER = LoggerFactory.getLogger(AbstractUndoLogManager.class); diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/SQLUndoDirtyException.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/SQLUndoDirtyException.java index f2dfca227c0..3305c95b616 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/SQLUndoDirtyException.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/SQLUndoDirtyException.java @@ -19,8 +19,7 @@ import java.io.Serializable; import java.sql.SQLException; -/** - */ + class SQLUndoDirtyException extends SQLException implements Serializable { private static final long serialVersionUID = -5168905669539637570L; diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogConstants.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogConstants.java index f86b5b08c5a..e26fe99c348 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogConstants.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogConstants.java @@ -21,8 +21,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_TRANSACTION_UNDO_LOG_SERIALIZATION; -/** - */ + public interface UndoLogConstants { String SERIALIZER_KEY = "serializer"; diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogManagerFactory.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogManagerFactory.java index 4fe6990a311..98f5fed4f35 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogManagerFactory.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/UndoLogManagerFactory.java @@ -22,8 +22,7 @@ import org.apache.seata.common.loader.EnhancedServiceLoader; import org.apache.seata.common.util.CollectionUtils; -/** - */ + public class UndoLogManagerFactory { private static final Map UNDO_LOG_MANAGER_MAP = new ConcurrentHashMap<>(); diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/dm/DmUndoLogManager.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/dm/DmUndoLogManager.java index 45acc1eb0eb..255b3663343 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/dm/DmUndoLogManager.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/dm/DmUndoLogManager.java @@ -34,8 +34,7 @@ import java.sql.SQLException; import java.util.Date; -/** - */ + @LoadLevel(name = JdbcConstants.DM) public class DmUndoLogManager extends AbstractUndoLogManager { diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManager.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManager.java index f19ace97e35..449e8acc4ca 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManager.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManager.java @@ -24,8 +24,7 @@ import org.apache.seata.common.loader.LoadLevel; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + @LoadLevel(name = JdbcConstants.MARIADB) public class MariadbUndoLogManager extends MySQLUndoLogManager { diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java index 73e1deb5666..8e325110594 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManager.java @@ -30,8 +30,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + @LoadLevel(name = JdbcConstants.MYSQL) public class MySQLUndoLogManager extends AbstractUndoLogManager { diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoLogManager.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoLogManager.java index 9065750da7f..13f23de1332 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoLogManager.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoLogManager.java @@ -31,8 +31,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + @LoadLevel(name = JdbcConstants.ORACLE) public class OracleUndoLogManager extends AbstractUndoLogManager { diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializer.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializer.java index b6f3780f0ba..bf5ffd7ebd5 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializer.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializer.java @@ -24,8 +24,7 @@ import java.io.ByteArrayOutputStream; import java.util.Objects; -/** - */ + public class KryoSerializer { private final Kryo kryo; diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializerFactory.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializerFactory.java index 8195a02ee35..c7ddae2281f 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializerFactory.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/parser/KryoSerializerFactory.java @@ -34,8 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + public class KryoSerializerFactory { private static final Logger LOGGER = LoggerFactory.getLogger(KryoSerializerFactory.class); diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoLogManager.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoLogManager.java index 3825929ce87..dd234c69e00 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoLogManager.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoLogManager.java @@ -30,8 +30,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + @LoadLevel(name = JdbcConstants.POSTGRESQL) public class PostgresqlUndoLogManager extends AbstractUndoLogManager { diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoUpdateExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoUpdateExecutor.java index c8c2fb92a24..2f773d366f0 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoUpdateExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/postgresql/PostgresqlUndoUpdateExecutor.java @@ -30,8 +30,7 @@ import org.apache.seata.rm.datasource.undo.SQLUndoLog; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class PostgresqlUndoUpdateExecutor extends AbstractUndoExecutor { /** diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutor.java index cf62384005f..b579c599abf 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutor.java @@ -29,8 +29,7 @@ import org.apache.seata.sqlparser.util.ColumnUtils; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class SqlServerUndoDeleteExecutor extends BaseSqlServerUndoExecutor { /** * Instantiates a new sql server delete undo executor. diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoExecutorHolder.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoExecutorHolder.java index 3fd1fa36cc4..426bb863acb 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoExecutorHolder.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoExecutorHolder.java @@ -22,8 +22,7 @@ import org.apache.seata.rm.datasource.undo.UndoExecutorHolder; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + @LoadLevel(name = JdbcConstants.SQLSERVER) public class SqlServerUndoExecutorHolder implements UndoExecutorHolder { @Override diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutor.java index c0613d182e6..9deb75ba781 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutor.java @@ -31,8 +31,7 @@ import org.apache.seata.rm.datasource.undo.SQLUndoLog; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class SqlServerUndoInsertExecutor extends BaseSqlServerUndoExecutor { /** * Instantiates a new sqlserver undo insert executor. diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoLogManager.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoLogManager.java index 9947230e98e..ac98535d25c 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoLogManager.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoLogManager.java @@ -30,8 +30,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + @LoadLevel(name = JdbcConstants.SQLSERVER) public class SqlServerUndoLogManager extends AbstractUndoLogManager { private static final Logger LOGGER = LoggerFactory.getLogger(SqlServerUndoLogManager.class); diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutor.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutor.java index 05abfcb084f..0b1861e2563 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutor.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutor.java @@ -29,8 +29,7 @@ import org.apache.seata.sqlparser.util.ColumnUtils; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class SqlServerUndoUpdateExecutor extends BaseSqlServerUndoExecutor { /** * Instantiates a new SqlServer update undo executor. diff --git a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/util/JdbcUtils.java b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/util/JdbcUtils.java index 2c7cd5a5e2f..2e5c8b1f336 100644 --- a/rm-datasource/src/main/java/org/apache/seata/rm/datasource/util/JdbcUtils.java +++ b/rm-datasource/src/main/java/org/apache/seata/rm/datasource/util/JdbcUtils.java @@ -29,8 +29,7 @@ import java.sql.Driver; import java.sql.SQLException; -/** - */ + public final class JdbcUtils { private static volatile DbTypeParser dbTypeParser; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/GlobalLockTemplateTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/GlobalLockTemplateTest.java index 8933205d958..d00b114d7c1 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/GlobalLockTemplateTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/GlobalLockTemplateTest.java @@ -27,8 +27,7 @@ import static org.junit.jupiter.api.Assertions.*; -/** - */ + public class GlobalLockTemplateTest { private final GlobalLockTemplate template = new GlobalLockTemplate(); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/RMHandlerATTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/RMHandlerATTest.java index 2a091eab1ab..ac9b7e7740e 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/RMHandlerATTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/RMHandlerATTest.java @@ -39,8 +39,7 @@ import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; -/** - */ + class RMHandlerATTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/ColumnUtilsTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/ColumnUtilsTest.java index 7440a3ddac2..443ad5363aa 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/ColumnUtilsTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/ColumnUtilsTest.java @@ -24,8 +24,7 @@ import java.util.ArrayList; import java.util.List; -/** - */ + public class ColumnUtilsTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataCompareUtilsTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataCompareUtilsTest.java index 5c332043380..0ea66410e2d 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataCompareUtilsTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataCompareUtilsTest.java @@ -31,8 +31,7 @@ import java.util.List; import java.util.Map; -/** - */ + public class DataCompareUtilsTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataSourceProxyTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataSourceProxyTest.java index a362fe24ea2..0f4aebb76d3 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataSourceProxyTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/DataSourceProxyTest.java @@ -39,8 +39,7 @@ import static org.mockito.ArgumentMatchers.anyString; import static org.mockito.Mockito.*; -/** - */ + public class DataSourceProxyTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/PreparedStatementProxyTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/PreparedStatementProxyTest.java index 3a361036241..a7a1c769223 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/PreparedStatementProxyTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/PreparedStatementProxyTest.java @@ -61,8 +61,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -/** - */ + public class PreparedStatementProxyTest { private static List returnValueColumnLabels = Lists.newArrayList("id", "name"); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/SqlGenerateUtilsTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/SqlGenerateUtilsTest.java index fc18425e597..7ac5b0b4675 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/SqlGenerateUtilsTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/SqlGenerateUtilsTest.java @@ -24,8 +24,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class SqlGenerateUtilsTest { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/StatementProxyTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/StatementProxyTest.java index f6a2fb72fbf..ee53d773105 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/StatementProxyTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/StatementProxyTest.java @@ -49,8 +49,7 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.TestMethodOrder; -/** - */ + @TestMethodOrder(MethodOrderer.Alphanumeric.class) public class StatementProxyTest { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DeleteExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DeleteExecutorTest.java index f14dc70c658..10a5ebb91c0 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DeleteExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DeleteExecutorTest.java @@ -40,8 +40,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -/** - */ + public class DeleteExecutorTest { private static DeleteExecutor deleteExecutor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DmInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DmInsertExecutorTest.java index dd56800e82f..3491540efbd 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DmInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/DmInsertExecutorTest.java @@ -44,8 +44,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -/** - */ + public class DmInsertExecutorTest { private static final String ID_COLUMN = "id"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/LockRetryControllerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/LockRetryControllerTest.java index 3b164867efa..6c312ffcc33 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/LockRetryControllerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/LockRetryControllerTest.java @@ -30,8 +30,7 @@ import static org.junit.jupiter.api.Assertions.*; -/** - */ + public class LockRetryControllerTest { private GlobalLockConfig config; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertExecutorTest.java index 0e9bd611f3d..51b5336af15 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertExecutorTest.java @@ -48,8 +48,7 @@ import static org.mockito.Mockito.mock; import static org.mockito.Mockito.when; -/** - */ + public class MariadbInsertExecutorTest extends MySQLInsertExecutorTest { @BeforeEach diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertOnDuplicateUpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertOnDuplicateUpdateExecutorTest.java index 3b4213d7a21..352720b3609 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertOnDuplicateUpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MariadbInsertOnDuplicateUpdateExecutorTest.java @@ -44,8 +44,7 @@ import org.apache.seata.sqlparser.SQLInsertRecognizer; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class MariadbInsertOnDuplicateUpdateExecutorTest extends MySQLInsertOnDuplicateUpdateExecutorTest { protected MariadbInsertOnDuplicateUpdateExecutor insertOrUpdateExecutor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertExecutorTest.java index f6d49e4af09..eaed8d4abb9 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertExecutorTest.java @@ -69,8 +69,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -/** - */ + public class MySQLInsertExecutorTest { protected static final String ID_COLUMN = "id"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertOnDuplicateUpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertOnDuplicateUpdateExecutorTest.java index 16bdc47be7a..59bd83081fc 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertOnDuplicateUpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/MySQLInsertOnDuplicateUpdateExecutorTest.java @@ -49,8 +49,7 @@ import static org.mockito.Mockito.when; -/** - */ + public class MySQLInsertOnDuplicateUpdateExecutorTest { protected static final String ID_COLUMN = "id"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/OracleInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/OracleInsertExecutorTest.java index dcc31c952ed..e2c1449f4da 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/OracleInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/OracleInsertExecutorTest.java @@ -47,8 +47,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -/** - */ + public class OracleInsertExecutorTest { private static final String ID_COLUMN = "id"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PlainExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PlainExecutorTest.java index ea84b14059b..6e2d0f76a70 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PlainExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PlainExecutorTest.java @@ -32,8 +32,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -/** - */ + public class PlainExecutorTest { private PlainExecutor plainExecutor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PostgresqlInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PostgresqlInsertExecutorTest.java index e4d71851116..9753749c6ac 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PostgresqlInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/PostgresqlInsertExecutorTest.java @@ -44,8 +44,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -/** - */ + public class PostgresqlInsertExecutorTest { private static final String ID_COLUMN = "id"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SelectForUpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SelectForUpdateExecutorTest.java index 659c22374f1..ca3dc38fd5a 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SelectForUpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SelectForUpdateExecutorTest.java @@ -41,8 +41,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -/** - */ + public class SelectForUpdateExecutorTest { private static SelectForUpdateExecutor selectForUpdateExecutor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SqlServerInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SqlServerInsertExecutorTest.java index c15b3d90539..a7245e3355e 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SqlServerInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/SqlServerInsertExecutorTest.java @@ -45,8 +45,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -/** - */ + public class SqlServerInsertExecutorTest { private static final String ID_COLUMN = "id"; private static final String USER_ID_COLUMN = "user_id"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateExecutorTest.java index fbdfec44fe2..9de02c73654 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateExecutorTest.java @@ -41,8 +41,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -/** - */ + public class UpdateExecutorTest { private static UpdateExecutor updateExecutor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateJoinExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateJoinExecutorTest.java index d988264ceb9..3a8ce32ce72 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateJoinExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/exec/UpdateJoinExecutorTest.java @@ -40,8 +40,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class UpdateJoinExecutorTest { @Test public void testUpdateJoinUndoLog() throws SQLException { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockBlob.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockBlob.java index 8edec59c0ae..e436da2c021 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockBlob.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockBlob.java @@ -21,8 +21,7 @@ import java.sql.Blob; import java.sql.SQLException; -/** - */ + public class MockBlob implements Blob { public MockBlob() { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockClob.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockClob.java index 1fc4caedab6..467b60f7827 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockClob.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockClob.java @@ -25,8 +25,7 @@ import java.sql.Clob; import java.sql.SQLException; -/** - */ + public class MockClob implements Clob { @Override diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockConnectionProxy.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockConnectionProxy.java index e9796452964..0ac8cbe995e 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockConnectionProxy.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockConnectionProxy.java @@ -22,8 +22,7 @@ import org.apache.seata.rm.datasource.ConnectionProxy; import org.apache.seata.rm.datasource.DataSourceProxy; -/** - */ + public class MockConnectionProxy extends ConnectionProxy { /** * Instantiates a new Connection proxy. diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockDataSource.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockDataSource.java index 2a0894266f4..c9f946446f6 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockDataSource.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockDataSource.java @@ -23,8 +23,7 @@ import java.sql.SQLFeatureNotSupportedException; import java.util.logging.Logger; -/** - */ + public class MockDataSource implements DataSource { @Override public Connection getConnection() throws SQLException { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockExecuteHandlerImpl.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockExecuteHandlerImpl.java index 31402543a86..17c0cf6607c 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockExecuteHandlerImpl.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockExecuteHandlerImpl.java @@ -32,8 +32,7 @@ import com.alibaba.druid.mock.MockStatementBase; import com.alibaba.druid.mock.handler.MockExecuteHandler; -/** - */ + public class MockExecuteHandlerImpl implements MockExecuteHandler { /** diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockLockConflictConnectionProxy.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockLockConflictConnectionProxy.java index 36c41d57a71..2a8708f0140 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockLockConflictConnectionProxy.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockLockConflictConnectionProxy.java @@ -24,8 +24,7 @@ import org.apache.seata.rm.datasource.DataSourceProxy; import org.apache.seata.rm.datasource.exec.LockConflictException; -/** - */ + public class MockLockConflictConnectionProxy extends ConnectionProxy { /** * Instantiates a new Connection proxy. diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockMariadbDataSource.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockMariadbDataSource.java index c39bbd9c746..cdc28780c6e 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockMariadbDataSource.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockMariadbDataSource.java @@ -19,8 +19,7 @@ import java.sql.Connection; import java.sql.SQLException; -/** - */ + public class MockMariadbDataSource extends MockDataSource { @Override public Connection getConnection() throws SQLException { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockParameterMetaData.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockParameterMetaData.java index 7404dc9c404..0a03c3a63aa 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockParameterMetaData.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockParameterMetaData.java @@ -19,8 +19,7 @@ import java.sql.ParameterMetaData; import java.sql.SQLException; -/** - */ + public class MockParameterMetaData implements ParameterMetaData { private int parameterCount; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockPreparedStatement.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockPreparedStatement.java index 445a2a75822..3370b212de3 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockPreparedStatement.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockPreparedStatement.java @@ -23,8 +23,7 @@ import com.alibaba.druid.mock.MockStatementBase; import com.alibaba.druid.util.jdbc.PreparedStatementBase; -/** - */ + public class MockPreparedStatement extends PreparedStatementBase implements MockStatementBase { private final String sql; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSet.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSet.java index 1efea8c6b4c..8f21cbac61d 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSet.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSet.java @@ -31,8 +31,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + public class MockResultSet extends ResultSetBase { private List columnMetas; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSetMetaData.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSetMetaData.java index 0bbfc4bb90a..43b9466132d 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSetMetaData.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/mock/MockResultSetMetaData.java @@ -23,8 +23,7 @@ import org.apache.seata.common.util.ReflectionUtil; import org.apache.seata.sqlparser.struct.ColumnMeta; -/** - */ + public class MockResultSetMetaData implements ResultSetMetaData { private List columns; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmDeleteRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmDeleteRecognizerTest.java index f8c124191a4..dd70cb31e69 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmDeleteRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmDeleteRecognizerTest.java @@ -30,8 +30,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DmDeleteRecognizerTest { private static final String DB_TYPE = "dm"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmInsertRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmInsertRecognizerTest.java index 608a0e940ea..1260d085758 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmInsertRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmInsertRecognizerTest.java @@ -29,8 +29,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DmInsertRecognizerTest { private static final String DB_TYPE = "dm"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmSelectForUpdateRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmSelectForUpdateRecognizerTest.java index 01fc4eab270..6e51aecb7ac 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmSelectForUpdateRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmSelectForUpdateRecognizerTest.java @@ -29,8 +29,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DmSelectForUpdateRecognizerTest { private static final String DB_TYPE = "dm"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmUpdateRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmUpdateRecognizerTest.java index c1997508c11..b392dbe0478 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmUpdateRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/dm/DmUpdateRecognizerTest.java @@ -31,8 +31,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DmUpdateRecognizerTest { private static final String DB_TYPE = "dm"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleDeleteRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleDeleteRecognizerTest.java index 47108af2711..647a9eb18be 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleDeleteRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleDeleteRecognizerTest.java @@ -30,8 +30,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class OracleDeleteRecognizerTest { private static final String DB_TYPE = "oracle"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleInsertRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleInsertRecognizerTest.java index 74ded3eb1ff..dc38ce00e6b 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleInsertRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleInsertRecognizerTest.java @@ -29,8 +29,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class OracleInsertRecognizerTest { private static final String DB_TYPE = "oracle"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleSelectForUpdateRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleSelectForUpdateRecognizerTest.java index 5dbcc5e352c..42ad92c9e81 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleSelectForUpdateRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleSelectForUpdateRecognizerTest.java @@ -30,8 +30,7 @@ import java.util.List; import java.util.Map; -/** - */ + public class OracleSelectForUpdateRecognizerTest { private static final String DB_TYPE = "oracle"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleUpdateRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleUpdateRecognizerTest.java index 92439ed005e..8a1ea2cd336 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleUpdateRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/oracle/OracleUpdateRecognizerTest.java @@ -32,8 +32,7 @@ import java.util.List; import java.util.Map; -/** - */ + public class OracleUpdateRecognizerTest { private static final String DB_TYPE = "oracle"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlDeleteRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlDeleteRecognizerTest.java index c21621d98c6..ac130be2f8c 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlDeleteRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlDeleteRecognizerTest.java @@ -31,8 +31,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class PostgresqlDeleteRecognizerTest { private static final String DB_TYPE = "postgresql"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlInsertRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlInsertRecognizerTest.java index e1b1c9771d9..95f92d6fa1f 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlInsertRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlInsertRecognizerTest.java @@ -33,8 +33,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class PostgresqlInsertRecognizerTest { private static final String DB_TYPE = "postgresql"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlSelectForUpdateRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlSelectForUpdateRecognizerTest.java index 315209427b2..17e91306364 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlSelectForUpdateRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlSelectForUpdateRecognizerTest.java @@ -26,8 +26,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class PostgresqlSelectForUpdateRecognizerTest { private static final String DB_TYPE = "postgresql"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlUpdateRecognizerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlUpdateRecognizerTest.java index c471202c5be..daf632654b7 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlUpdateRecognizerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/druid/postgresql/PostgresqlUpdateRecognizerTest.java @@ -34,8 +34,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class PostgresqlUpdateRecognizerTest { private static final String DB_TYPE = "postgresql"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/ColumnMetaTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/ColumnMetaTest.java index 58204dcaa04..2cb3942d77a 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/ColumnMetaTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/ColumnMetaTest.java @@ -20,8 +20,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class ColumnMetaTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexMetaTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexMetaTest.java index 8edbd421d5c..9cab75aa67b 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexMetaTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexMetaTest.java @@ -23,8 +23,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class IndexMetaTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexTypeTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexTypeTest.java index 1855cbb7986..f58b4a1b457 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexTypeTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/IndexTypeTest.java @@ -20,8 +20,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class IndexTypeTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaCacheFactoryTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaCacheFactoryTest.java index 6325d874612..ef746ad05eb 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaCacheFactoryTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaCacheFactoryTest.java @@ -27,8 +27,7 @@ import org.apache.seata.rm.datasource.sql.struct.cache.OracleTableMetaCache; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class TableMetaCacheFactoryTest { private static final String NOT_EXIST_SQL_TYPE = "not_exist_sql_type"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaTest.java index ac8679b2c26..8b60d73e0a3 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/TableMetaTest.java @@ -27,8 +27,7 @@ import java.util.List; -/** - */ + public class TableMetaTest { private final String COLUMN_ID="id"; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java index 2b5e69b5a1d..d5053a4ba26 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/DmTableMetaCacheTest.java @@ -30,8 +30,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DmTableMetaCacheTest { private static Object[][] columnMetas = diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/SqlServerTableMetaCacheTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/SqlServerTableMetaCacheTest.java index 10011ee237c..8b14bedbd65 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/SqlServerTableMetaCacheTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/sql/struct/cache/SqlServerTableMetaCacheTest.java @@ -37,8 +37,7 @@ import static org.mockito.Mockito.mock; -/** - */ + public class SqlServerTableMetaCacheTest { private static Object[][] columnMetas = new Object[][]{ diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/AbstractUndoExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/AbstractUndoExecutorTest.java index 6adff5aa23c..8f6522617af 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/AbstractUndoExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/AbstractUndoExecutorTest.java @@ -31,8 +31,7 @@ import java.sql.SQLException; import java.util.*; -/** - */ + public class AbstractUndoExecutorTest extends BaseH2Test { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseExecutorTest.java index 22cf2a30bbd..b21dbcfcb78 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseExecutorTest.java @@ -20,8 +20,7 @@ import org.apache.seata.rm.datasource.sql.struct.KeyType; import org.apache.seata.rm.datasource.sql.struct.Row; -/** - */ + public abstract class BaseExecutorTest { protected static Field addField(Row row, String name, int type, Object value) { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseH2Test.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseH2Test.java index bbfec3b7633..0261e53ba53 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseH2Test.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseH2Test.java @@ -39,8 +39,7 @@ import java.sql.Types; import java.util.Arrays; -/** - */ + public abstract class BaseH2Test { static BasicDataSource dataSource = null; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseUndoLogParserTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseUndoLogParserTest.java index 05460017dbb..37cb93773ce 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseUndoLogParserTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/BaseUndoLogParserTest.java @@ -36,8 +36,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + public abstract class BaseUndoLogParserTest extends BaseH2Test { private final Logger LOGGER = LoggerFactory.getLogger(this.getClass()); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/EscapeHandlerFactoryTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/EscapeHandlerFactoryTest.java index a753664a739..0c88572c1d7 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/EscapeHandlerFactoryTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/EscapeHandlerFactoryTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class EscapeHandlerFactoryTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogManagerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogManagerTest.java index eb7b36994bc..f54fe929aed 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogManagerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogManagerTest.java @@ -33,8 +33,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -/** - */ + public class UndoLogManagerTest { diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserFactoryTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserFactoryTest.java index 2d9c1a0e6cb..1a3026479dc 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserFactoryTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserFactoryTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class UndoLogParserFactoryTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserProviderTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserProviderTest.java index cae18fc2edd..3a235dbf183 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserProviderTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/UndoLogParserProviderTest.java @@ -27,8 +27,7 @@ import org.apache.seata.common.loader.EnhancedServiceNotFoundException; import org.apache.seata.rm.datasource.undo.parser.ProtostuffUndoLogParser; -/** - */ + class UndoLogParserProviderTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/h2/keyword/H2EscapeHandler.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/h2/keyword/H2EscapeHandler.java index 2a7deb7f4d7..6458c363b35 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/h2/keyword/H2EscapeHandler.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/h2/keyword/H2EscapeHandler.java @@ -20,8 +20,7 @@ import org.apache.seata.rm.datasource.sql.handler.mysql.MySQLEscapeHandler; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + @LoadLevel(name = JdbcConstants.H2) public class H2EscapeHandler extends MySQLEscapeHandler { } diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbLUndoInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbLUndoInsertExecutorTest.java index bb0483d865a..6ad9742342f 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbLUndoInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbLUndoInsertExecutorTest.java @@ -32,8 +32,7 @@ import org.apache.seata.rm.datasource.undo.SQLUndoLog; import org.apache.seata.sqlparser.SQLType; -/** - */ + public class MariadbLUndoInsertExecutorTest extends BaseExecutorTest { private static MariadbUndoInsertExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoDeleteExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoDeleteExecutorTest.java index 254e23733d3..16922517891 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoDeleteExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoDeleteExecutorTest.java @@ -32,8 +32,7 @@ import org.apache.seata.rm.datasource.undo.SQLUndoLog; import org.apache.seata.sqlparser.SQLType; -/** - */ + public class MariadbUndoDeleteExecutorTest extends BaseExecutorTest { private static MariadbUndoDeleteExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManagerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManagerTest.java index 20fb7021087..40906dba5f7 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManagerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoLogManagerTest.java @@ -59,8 +59,7 @@ import org.apache.seata.sqlparser.druid.SQLOperateRecognizerHolderFactory; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class MariadbUndoLogManagerTest { List returnValueColumnLabels = Lists.newArrayList("log_status"); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoUpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoUpdateExecutorTest.java index 774e5fbb2fa..05823b8207f 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoUpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mariadb/MariadbUndoUpdateExecutorTest.java @@ -32,8 +32,7 @@ import org.apache.seata.rm.datasource.undo.SQLUndoLog; import org.apache.seata.sqlparser.SQLType; -/** - */ + public class MariadbUndoUpdateExecutorTest extends BaseExecutorTest { private static MariadbUndoUpdateExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoDeleteExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoDeleteExecutorTest.java index b45bbaac73e..fd6c6675d42 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoDeleteExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoDeleteExecutorTest.java @@ -31,8 +31,7 @@ import java.util.Arrays; import java.util.List; -/** - */ + public class MySQLUndoDeleteExecutorTest extends BaseExecutorTest { private static MySQLUndoDeleteExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoInsertExecutorTest.java index 8d39aab22c5..4a16e2a09d5 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoInsertExecutorTest.java @@ -31,8 +31,7 @@ import java.util.Arrays; import java.util.List; -/** - */ + public class MySQLUndoInsertExecutorTest extends BaseExecutorTest { private static MySQLUndoInsertExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManagerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManagerTest.java index ed0f5784386..9c724ea0d05 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManagerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoLogManagerTest.java @@ -55,8 +55,7 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -/** - */ + public class MySQLUndoLogManagerTest { List returnValueColumnLabels = Lists.newArrayList("log_status"); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoUpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoUpdateExecutorTest.java index 46e3013a086..8c12d5463c2 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoUpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/mysql/MySQLUndoUpdateExecutorTest.java @@ -31,8 +31,7 @@ import java.util.Arrays; import java.util.List; -/** - */ + public class MySQLUndoUpdateExecutorTest extends BaseExecutorTest { private static MySQLUndoUpdateExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoDeleteExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoDeleteExecutorTest.java index e75bbef5338..16ec92a5924 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoDeleteExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoDeleteExecutorTest.java @@ -30,8 +30,7 @@ import java.util.Arrays; import java.util.List; -/** - */ + public class OracleUndoDeleteExecutorTest extends BaseExecutorTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoInsertExecutorTest.java index 158f778e7a5..49cf7188659 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoInsertExecutorTest.java @@ -30,8 +30,7 @@ import java.util.Arrays; import java.util.List; -/** - */ + public class OracleUndoInsertExecutorTest extends BaseExecutorTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoUpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoUpdateExecutorTest.java index 6867298e549..e9362bb3961 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoUpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/OracleUndoUpdateExecutorTest.java @@ -30,8 +30,7 @@ import java.util.Arrays; import java.util.List; -/** - */ + public class OracleUndoUpdateExecutorTest extends BaseExecutorTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/keyword/OracleEscapeHandlerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/keyword/OracleEscapeHandlerTest.java index 06732904a3f..c9b9fb24b03 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/keyword/OracleEscapeHandlerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/oracle/keyword/OracleEscapeHandlerTest.java @@ -23,8 +23,7 @@ import org.apache.seata.sqlparser.EscapeHandlerFactory; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class OracleEscapeHandlerTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/FastjsonUndoLogParserTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/FastjsonUndoLogParserTest.java index 6fa5832c483..f67e64d311c 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/FastjsonUndoLogParserTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/FastjsonUndoLogParserTest.java @@ -39,8 +39,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class FastjsonUndoLogParserTest extends BaseUndoLogParserTest { FastjsonUndoLogParser parser = (FastjsonUndoLogParser) EnhancedServiceLoader.load(UndoLogParser.class, FastjsonUndoLogParser.NAME); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/JacksonUndoLogParserTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/JacksonUndoLogParserTest.java index fa43bee7876..da3d7877e55 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/JacksonUndoLogParserTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/JacksonUndoLogParserTest.java @@ -34,8 +34,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class JacksonUndoLogParserTest extends BaseUndoLogParserTest { JacksonUndoLogParser parser = (JacksonUndoLogParser) EnhancedServiceLoader.load(UndoLogParser.class, JacksonUndoLogParser.NAME); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/KryoUndoLogParserTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/KryoUndoLogParserTest.java index e9a2d1bfba4..edfe9a65408 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/KryoUndoLogParserTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/KryoUndoLogParserTest.java @@ -20,8 +20,7 @@ import org.apache.seata.rm.datasource.undo.BaseUndoLogParserTest; import org.apache.seata.rm.datasource.undo.UndoLogParser; -/** - */ + public class KryoUndoLogParserTest extends BaseUndoLogParserTest { KryoUndoLogParser parser = (KryoUndoLogParser) EnhancedServiceLoader.load(UndoLogParser.class, KryoUndoLogParser.NAME); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/ProtostuffUndoLogParserTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/ProtostuffUndoLogParserTest.java index 5c55bfc0042..3f8cfc3d5bf 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/ProtostuffUndoLogParserTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/parser/ProtostuffUndoLogParserTest.java @@ -20,8 +20,7 @@ import org.apache.seata.rm.datasource.undo.BaseUndoLogParserTest; import org.apache.seata.rm.datasource.undo.UndoLogParser; -/** - */ + class ProtostuffUndoLogParserTest extends BaseUndoLogParserTest { ProtostuffUndoLogParser parser = (ProtostuffUndoLogParser) EnhancedServiceLoader.load(UndoLogParser.class, ProtostuffUndoLogParser.NAME); diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/postgresql/keyword/PostgresqlEscapeHandlerTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/postgresql/keyword/PostgresqlEscapeHandlerTest.java index ec703e59ecd..be8628e693d 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/postgresql/keyword/PostgresqlEscapeHandlerTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/postgresql/keyword/PostgresqlEscapeHandlerTest.java @@ -23,8 +23,7 @@ import org.apache.seata.sqlparser.EscapeHandlerFactory; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public class PostgresqlEscapeHandlerTest { @Test diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutorTest.java index eaf907addda..6ecb004d39a 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoDeleteExecutorTest.java @@ -31,8 +31,7 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; -/** - */ + public class SqlServerUndoDeleteExecutorTest extends BaseExecutorTest { private static SqlServerUndoDeleteExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutorTest.java index a5c750fd35f..b5981614508 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoInsertExecutorTest.java @@ -36,8 +36,7 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; -/** - */ + public class SqlServerUndoInsertExecutorTest extends BaseExecutorTest { private static SqlServerUndoInsertExecutor executor; diff --git a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutorTest.java b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutorTest.java index ab8cea4091e..4b55b53ec2e 100644 --- a/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutorTest.java +++ b/rm-datasource/src/test/java/org/apache/seata/rm/datasource/undo/sqlserver/SqlServerUndoUpdateExecutorTest.java @@ -31,8 +31,7 @@ import org.junit.jupiter.api.Test; import org.mockito.Mockito; -/** - */ + public class SqlServerUndoUpdateExecutorTest extends BaseExecutorTest { private static SqlServerUndoUpdateExecutor executor; diff --git a/seata-plugin/seata-jackson-parser-oracle/src/main/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializer.java b/seata-plugin/seata-jackson-parser-oracle/src/main/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializer.java index 809131b845a..90bcae2e761 100644 --- a/seata-plugin/seata-jackson-parser-oracle/src/main/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializer.java +++ b/seata-plugin/seata-jackson-parser-oracle/src/main/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializer.java @@ -33,8 +33,7 @@ import java.io.IOException; -/** - */ + @LoadLevel(name = "oracleTimestamp") public class OracleTimestampJacksonSerializer implements JacksonSerializer { diff --git a/seata-plugin/seata-jackson-parser-oracle/src/test/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializerTest.java b/seata-plugin/seata-jackson-parser-oracle/src/test/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializerTest.java index d0ce5fb02dd..fde4a601db1 100644 --- a/seata-plugin/seata-jackson-parser-oracle/src/test/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializerTest.java +++ b/seata-plugin/seata-jackson-parser-oracle/src/test/java/io/seata/plugin/jackson/parser/oracle/OracleTimestampJacksonSerializerTest.java @@ -23,8 +23,7 @@ import java.util.List; -/** - */ + public class OracleTimestampJacksonSerializerTest { @Test diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataClientEnvironmentPostProcessor.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataClientEnvironmentPostProcessor.java index 4fef3afda93..93301aaf409 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataClientEnvironmentPostProcessor.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataClientEnvironmentPostProcessor.java @@ -48,8 +48,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.UNDO_PREFIX; -/** - */ + public class SeataClientEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered { @Override diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/SeataProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/SeataProperties.java index 2f9bcfd17d5..70775df3ba4 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/SeataProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/SeataProperties.java @@ -23,8 +23,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SEATA_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = SEATA_PREFIX) public class SeataProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LoadBalanceProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LoadBalanceProperties.java index ce4281098cb..5d59a387ea0 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LoadBalanceProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LoadBalanceProperties.java @@ -23,8 +23,7 @@ import static org.apache.seata.common.DefaultValues.VIRTUAL_NODES_DEFAULT; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.LOAD_BALANCE_PREFIX_KEBAB_STYLE; -/** - */ + @Component @ConfigurationProperties(prefix = LOAD_BALANCE_PREFIX_KEBAB_STYLE) public class LoadBalanceProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LockProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LockProperties.java index b86cf975744..4643e78b6c1 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LockProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/LockProperties.java @@ -24,8 +24,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_CLIENT_LOCK_RETRY_TIMES; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.LOCK_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = LOCK_PREFIX) public class LockProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/RmProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/RmProperties.java index 76d84a1b2cf..777708969e5 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/RmProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/RmProperties.java @@ -35,8 +35,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_APPLICATION_DATA_SIZE_LIMIT; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CLIENT_RM_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CLIENT_RM_PREFIX) public class RmProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/ServiceProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/ServiceProperties.java index 8b2d09feb80..af4865fcf71 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/ServiceProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/ServiceProperties.java @@ -30,8 +30,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_TX_GROUP_OLD; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SERVICE_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = SERVICE_PREFIX) public class ServiceProperties implements InitializingBean { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/TmProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/TmProperties.java index 0a1192c4591..910441479c6 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/TmProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/TmProperties.java @@ -28,8 +28,7 @@ import static org.apache.seata.common.DefaultValues.TM_INTERCEPTOR_ORDER; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CLIENT_TM_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CLIENT_TM_PREFIX) public class TmProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoCompressProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoCompressProperties.java index 18f9a841918..9c69e8396e2 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoCompressProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoCompressProperties.java @@ -22,8 +22,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.COMPRESS_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = COMPRESS_PREFIX) public class UndoCompressProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoProperties.java index 878a9aeb430..a1808737725 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/client/UndoProperties.java @@ -25,8 +25,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_TRANSACTION_UNDO_LOG_TABLE; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.UNDO_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = UNDO_PREFIX) public class UndoProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/test/java/org/apache/seata/spring/boot/autoconfigure/ClientPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/test/java/org/apache/seata/spring/boot/autoconfigure/ClientPropertiesTest.java index 7ecb1d2de8d..31dedd13a76 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/test/java/org/apache/seata/spring/boot/autoconfigure/ClientPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-client/src/test/java/org/apache/seata/spring/boot/autoconfigure/ClientPropertiesTest.java @@ -41,8 +41,7 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; -/** - */ + public class ClientPropertiesTest { private static AnnotationConfigApplicationContext context; diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreAutoConfiguration.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreAutoConfiguration.java index 7d7e8bbf144..ce8a1e33a35 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreAutoConfiguration.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreAutoConfiguration.java @@ -26,8 +26,7 @@ import static org.apache.seata.common.Constants.BEAN_NAME_SPRING_APPLICATION_CONTEXT_PROVIDER; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SEATA_PREFIX; -/** - */ + @ConditionalOnProperty(prefix = SEATA_PREFIX, name = "enabled", havingValue = "true", matchIfMissing = true) @ComponentScan(basePackages = "org.apache.seata.spring.boot.autoconfigure.properties") @Configuration(proxyBeanMethods = false) diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreEnvironmentPostProcessor.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreEnvironmentPostProcessor.java index f07b7baf072..df9478809d5 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreEnvironmentPostProcessor.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataCoreEnvironmentPostProcessor.java @@ -68,8 +68,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.THREAD_FACTORY_PREFIX; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.TRANSPORT_PREFIX; -/** - */ + public class SeataCoreEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered { private static final AtomicBoolean INIT = new AtomicBoolean(false); diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/StarterConstants.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/StarterConstants.java index cf5c52c7079..f5fe4fe6721 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/StarterConstants.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/StarterConstants.java @@ -20,8 +20,7 @@ import org.apache.seata.config.ConfigurationKeys; -/** - */ + public interface StarterConstants { String SEATA_PREFIX = "seata"; String SEATA_SPRING_CLOUD_ALIBABA_PREFIX = "spring.cloud.alibaba.seata"; diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/LogProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/LogProperties.java index 1e29f304c5d..7ba97014178 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/LogProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/LogProperties.java @@ -22,8 +22,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_LOG_EXCEPTION_RATE; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.LOG_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = LOG_PREFIX) public class LogProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ShutdownProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ShutdownProperties.java index fb11d898157..d32ae4ac4f0 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ShutdownProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ShutdownProperties.java @@ -22,8 +22,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_SHUTDOWN_TIMEOUT_SEC; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SHUTDOWN_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = SHUTDOWN_PREFIX) public class ShutdownProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ThreadFactoryProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ThreadFactoryProperties.java index b5b012b52fc..2d032a59a27 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ThreadFactoryProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/ThreadFactoryProperties.java @@ -29,8 +29,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_WORKER_THREAD_PREFIX; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.THREAD_FACTORY_PREFIX_KEBAB_STYLE; -/** - */ + @Component @ConfigurationProperties(prefix = THREAD_FACTORY_PREFIX_KEBAB_STYLE) public class ThreadFactoryProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/TransportProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/TransportProperties.java index 89d23180ca6..8b4caa4e8f6 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/TransportProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/TransportProperties.java @@ -29,8 +29,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_TRANSPORT_HEARTBEAT; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.TRANSPORT_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = TRANSPORT_PREFIX) public class TransportProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigApolloProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigApolloProperties.java index 977b3b4ee08..9edc2fad542 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigApolloProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigApolloProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_APOLLO_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_APOLLO_PREFIX) public class ConfigApolloProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigConsulProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigConsulProperties.java index 0de64339706..2f390bec0f0 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigConsulProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigConsulProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_CONSUL_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_CONSUL_PREFIX) public class ConfigConsulProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigCustomProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigCustomProperties.java index 18bfddd8825..fdcf77f417f 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigCustomProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigCustomProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_CUSTOM_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_CUSTOM_PREFIX) public class ConfigCustomProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigEtcd3Properties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigEtcd3Properties.java index d67eb959877..6313bc06ca8 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigEtcd3Properties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigEtcd3Properties.java @@ -22,8 +22,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_ETCD3_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_ETCD3_PREFIX) public class ConfigEtcd3Properties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigFileProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigFileProperties.java index 50b377b4043..5f6403672cc 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigFileProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigFileProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_FILE_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_FILE_PREFIX) public class ConfigFileProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigNacosProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigNacosProperties.java index 2d743c8db8a..2d24995f9f0 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigNacosProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigNacosProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_NACOS_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_NACOS_PREFIX) public class ConfigNacosProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigProperties.java index ef932646775..b8fd6800cc9 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_PREFIX) public class ConfigProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigZooKeeperProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigZooKeeperProperties.java index c0cea50bf87..9f88c86ae97 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigZooKeeperProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/config/ConfigZooKeeperProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.CONFIG_ZK_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = CONFIG_ZK_PREFIX) public class ConfigZooKeeperProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryConsulProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryConsulProperties.java index c44b9a31d93..fa00c816383 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryConsulProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryConsulProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_CONSUL_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_CONSUL_PREFIX) public class RegistryConsulProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryCustomProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryCustomProperties.java index e3d5db0abfe..96e4045177b 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryCustomProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryCustomProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_CUSTOM_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_CUSTOM_PREFIX) public class RegistryCustomProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEtcd3Properties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEtcd3Properties.java index 8eb5c50df5e..238599a81f7 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEtcd3Properties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEtcd3Properties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_ETCD3_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_ETCD3_PREFIX) public class RegistryEtcd3Properties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEurekaProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEurekaProperties.java index 3f291348fe6..e99b5ab4c91 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEurekaProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryEurekaProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_EUREKA_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_EUREKA_PREFIX) public class RegistryEurekaProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryNacosProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryNacosProperties.java index aa4ca1578c5..dfc4899244d 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryNacosProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryNacosProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_NACOS_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_NACOS_PREFIX) public class RegistryNacosProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryProperties.java index fdfdcc195be..456c53bec5e 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_PREFIX) public class RegistryProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRaftProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRaftProperties.java index bf370e6a30e..78de9b3b045 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRaftProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRaftProperties.java @@ -22,8 +22,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_RAFT_PREFIX) public class RegistryRaftProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRedisProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRedisProperties.java index cf66244fbbd..5b32719e82a 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRedisProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryRedisProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_REDIS_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_REDIS_PREFIX) public class RegistryRedisProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistrySofaProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistrySofaProperties.java index fd188875bc8..9dfb23ebe66 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistrySofaProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistrySofaProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_SOFA_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_SOFA_PREFIX) public class RegistrySofaProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryZooKeeperProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryZooKeeperProperties.java index e67b4b62d44..a511849d649 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryZooKeeperProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/registry/RegistryZooKeeperProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.REGISTRY_ZK_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = REGISTRY_ZK_PREFIX) public class RegistryZooKeeperProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/provider/SpringBootConfigurationProvider.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/provider/SpringBootConfigurationProvider.java index 585794cce80..c390de9ebe8 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/provider/SpringBootConfigurationProvider.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/main/java/org/apache/seata/spring/boot/autoconfigure/provider/SpringBootConfigurationProvider.java @@ -47,8 +47,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SPECIAL_KEY_SERVICE; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SPECIAL_KEY_VGROUP_MAPPING; -/** - */ + public class SpringBootConfigurationProvider implements ExtConfigurationProvider { private static final Logger LOGGER = LoggerFactory.getLogger(SpringBootConfigurationProvider.class); diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/BasePropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/BasePropertiesTest.java index 0d02ed4e01d..06ada82a929 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/BasePropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/BasePropertiesTest.java @@ -32,8 +32,7 @@ import static org.apache.seata.common.Constants.OBJECT_KEY_SPRING_APPLICATION_CONTEXT; import static org.apache.seata.common.Constants.OBJECT_KEY_SPRING_CONFIGURABLE_ENVIRONMENT; -/** - */ + public class BasePropertiesTest { protected static AnnotationConfigApplicationContext applicationContex; protected static final String STR_TEST_AAA = "aaa"; diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/CorePropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/CorePropertiesTest.java index b1c17daba5f..490f0564465 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/CorePropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/CorePropertiesTest.java @@ -39,8 +39,7 @@ import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; -/** - */ + public class CorePropertiesTest { private static AnnotationConfigApplicationContext context; diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ApolloPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ApolloPropertiesTest.java index b09a07c798e..48d3aa71fd7 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ApolloPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ApolloPropertiesTest.java @@ -31,8 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) class ApolloPropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConfigPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConfigPropertiesTest.java index 5d1cac78e21..8721bed5126 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConfigPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConfigPropertiesTest.java @@ -30,8 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) public class ConfigPropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConsulPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConsulPropertiesTest.java index fd342da5040..a215a8ebd45 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConsulPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ConsulPropertiesTest.java @@ -30,8 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) public class ConsulPropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/CustomPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/CustomPropertiesTest.java index 903e92e879f..f5b8ecfeb63 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/CustomPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/CustomPropertiesTest.java @@ -30,8 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) public class CustomPropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/Etcd3PropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/Etcd3PropertiesTest.java index 1dd2bdf6396..b9aee79d430 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/Etcd3PropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/Etcd3PropertiesTest.java @@ -30,8 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) public class Etcd3PropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/FilePropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/FilePropertiesTest.java index c276e9fdfbb..d842587948b 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/FilePropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/FilePropertiesTest.java @@ -30,8 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) public class FilePropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/NacosPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/NacosPropertiesTest.java index a37576cd316..b28db301970 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/NacosPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/NacosPropertiesTest.java @@ -31,8 +31,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) public class NacosPropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ZooKeeperPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ZooKeeperPropertiesTest.java index e4d76ade6f2..a2994ec083b 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ZooKeeperPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-core/src/test/java/org/apache/seata/spring/boot/autoconfigure/properties/config/test/ZooKeeperPropertiesTest.java @@ -30,8 +30,7 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.mockito.Mockito.mock; -/** - */ + @org.springframework.context.annotation.Configuration @Import(SpringApplicationContextProvider.class) public class ZooKeeperPropertiesTest extends BasePropertiesTest { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataServerEnvironmentPostProcessor.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataServerEnvironmentPostProcessor.java index 111e730ec2d..9749a003d81 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataServerEnvironmentPostProcessor.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/SeataServerEnvironmentPostProcessor.java @@ -50,8 +50,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_REDIS_SINGLE_PREFIX; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_SESSION_PREFIX; -/** - */ + public class SeataServerEnvironmentPostProcessor implements EnvironmentPostProcessor, Ordered { private static final AtomicBoolean INIT = new AtomicBoolean(false); diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/MetricsProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/MetricsProperties.java index 1b8e0682543..3b67f8d586c 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/MetricsProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/MetricsProperties.java @@ -25,8 +25,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_PROMETHEUS_PORT; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.METRICS_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = METRICS_PREFIX) public class MetricsProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerProperties.java index dd850b80701..f273b741d69 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerProperties.java @@ -21,8 +21,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SERVER_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = SERVER_PREFIX) public class ServerProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRaftProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRaftProperties.java index 87829978302..5121b0dff85 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRaftProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRaftProperties.java @@ -22,8 +22,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SERVER_RAFT_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = SERVER_RAFT_PREFIX) public class ServerRaftProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRecoveryProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRecoveryProperties.java index 3657008c59e..d3029eb42be 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRecoveryProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerRecoveryProperties.java @@ -25,8 +25,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_TIMEOUT_RETRY_PERIOD; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SERVER_RECOVERY_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = SERVER_RECOVERY_PREFIX) public class ServerRecoveryProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerUndoProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerUndoProperties.java index 40138521e41..8c36fb6ac68 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerUndoProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/ServerUndoProperties.java @@ -23,8 +23,7 @@ import static org.apache.seata.core.protocol.transaction.UndoLogDeleteRequest.DEFAULT_SAVE_DAYS; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.SERVER_UNDO_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = SERVER_UNDO_PREFIX) public class ServerUndoProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreDBProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreDBProperties.java index 00f14e81676..761f8fe1772 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreDBProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreDBProperties.java @@ -24,8 +24,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_QUERY_LIMIT; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_DB_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = STORE_DB_PREFIX) public class StoreDBProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreFileProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreFileProperties.java index 18b50e880f2..7559aa441e8 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreFileProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreFileProperties.java @@ -22,8 +22,7 @@ import static org.apache.seata.common.DefaultValues.DEFAULT_SERVICE_SESSION_RELOAD_READ_SIZE; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_FILE_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = STORE_FILE_PREFIX) public class StoreFileProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreProperties.java index dd85c3e911f..b433b3c5363 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreProperties.java @@ -23,8 +23,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_SESSION_PREFIX; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_LOCK_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = STORE_PREFIX) public class StoreProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreRedisProperties.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreRedisProperties.java index abe71b7d749..38f2922e46b 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreRedisProperties.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/main/java/org/apache/seata/spring/boot/autoconfigure/properties/server/store/StoreRedisProperties.java @@ -26,8 +26,7 @@ import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_REDIS_SINGLE_PREFIX; import static org.apache.seata.spring.boot.autoconfigure.StarterConstants.STORE_REDIS_SENTINEL_PREFIX; -/** - */ + @Component @ConfigurationProperties(prefix = STORE_REDIS_PREFIX) public class StoreRedisProperties { diff --git a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/test/java/org/apache/seata/spring/boot/autoconfigure/ServerPropertiesTest.java b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/test/java/org/apache/seata/spring/boot/autoconfigure/ServerPropertiesTest.java index 2d35422e51e..dda039fdf4c 100644 --- a/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/test/java/org/apache/seata/spring/boot/autoconfigure/ServerPropertiesTest.java +++ b/seata-spring-autoconfigure/seata-spring-autoconfigure-server/src/test/java/org/apache/seata/spring/boot/autoconfigure/ServerPropertiesTest.java @@ -36,8 +36,7 @@ import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; -/** - */ + public class ServerPropertiesTest { private static AnnotationConfigApplicationContext context; diff --git a/seata-spring-boot-starter/src/test/java/org/apache/seata/spring/boot/autoconfigure/PropertyBeanPostProcessorTest.java b/seata-spring-boot-starter/src/test/java/org/apache/seata/spring/boot/autoconfigure/PropertyBeanPostProcessorTest.java index 146ad5092a7..f0148ab8a1e 100644 --- a/seata-spring-boot-starter/src/test/java/org/apache/seata/spring/boot/autoconfigure/PropertyBeanPostProcessorTest.java +++ b/seata-spring-boot-starter/src/test/java/org/apache/seata/spring/boot/autoconfigure/PropertyBeanPostProcessorTest.java @@ -24,8 +24,7 @@ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -/** - */ + @Configuration(proxyBeanMethods = false) public class PropertyBeanPostProcessorTest { private static AnnotationConfigApplicationContext context; diff --git a/serializer/seata-serializer-hessian/src/main/java/org/apache/seata/serializer/hessian/HessianSerializer.java b/serializer/seata-serializer-hessian/src/main/java/org/apache/seata/serializer/hessian/HessianSerializer.java index fc82601b7f7..97f5bce2907 100644 --- a/serializer/seata-serializer-hessian/src/main/java/org/apache/seata/serializer/hessian/HessianSerializer.java +++ b/serializer/seata-serializer-hessian/src/main/java/org/apache/seata/serializer/hessian/HessianSerializer.java @@ -28,8 +28,7 @@ import java.io.ByteArrayOutputStream; import java.io.IOException; -/** - */ + @LoadLevel(name = "HESSIAN") public class HessianSerializer implements Serializer { private static final Logger LOGGER = LoggerFactory.getLogger(HessianSerializer.class); diff --git a/serializer/seata-serializer-hessian/src/test/java/org/apache/seata/serializer/hessian/HessianSerializerTest.java b/serializer/seata-serializer-hessian/src/test/java/org/apache/seata/serializer/hessian/HessianSerializerTest.java index e3c3e707435..7036af3ff25 100644 --- a/serializer/seata-serializer-hessian/src/test/java/org/apache/seata/serializer/hessian/HessianSerializerTest.java +++ b/serializer/seata-serializer-hessian/src/test/java/org/apache/seata/serializer/hessian/HessianSerializerTest.java @@ -34,8 +34,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class HessianSerializerTest { private static HessianSerializer hessianCodec; diff --git a/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoInnerSerializer.java b/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoInnerSerializer.java index b4c0209f455..bb450d1988c 100644 --- a/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoInnerSerializer.java +++ b/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoInnerSerializer.java @@ -24,8 +24,7 @@ import com.esotericsoftware.kryo.io.Input; import com.esotericsoftware.kryo.io.Output; -/** - */ + public class KryoInnerSerializer implements AutoCloseable { private final Kryo kryo; diff --git a/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializer.java b/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializer.java index 0b0229e4d0e..e3f0cb0734c 100644 --- a/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializer.java +++ b/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializer.java @@ -20,8 +20,7 @@ import org.apache.seata.core.protocol.AbstractMessage; import org.apache.seata.core.serializer.Serializer; -/** - */ + @LoadLevel(name = "KRYO") public class KryoSerializer implements Serializer { diff --git a/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializerFactory.java b/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializerFactory.java index 184a2cd9d0a..a3480af495d 100644 --- a/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializerFactory.java +++ b/serializer/seata-serializer-kryo/src/main/java/org/apache/seata/serializer/kryo/KryoSerializerFactory.java @@ -20,8 +20,7 @@ import com.esotericsoftware.kryo.util.Pool; import org.apache.seata.core.serializer.SerializerSecurityRegistry; -/** - */ + public class KryoSerializerFactory { private static final KryoSerializerFactory FACTORY = new KryoSerializerFactory(); diff --git a/serializer/seata-serializer-kryo/src/test/java/org/apache/seata/serializer/kryo/KryoSerializerTest.java b/serializer/seata-serializer-kryo/src/test/java/org/apache/seata/serializer/kryo/KryoSerializerTest.java index 322c77e5961..461e635a8dd 100644 --- a/serializer/seata-serializer-kryo/src/test/java/org/apache/seata/serializer/kryo/KryoSerializerTest.java +++ b/serializer/seata-serializer-kryo/src/test/java/org/apache/seata/serializer/kryo/KryoSerializerTest.java @@ -35,8 +35,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class KryoSerializerTest { private static KryoSerializer kryoCodec; diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufHelper.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufHelper.java index e23f89f0c32..9989195e45b 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufHelper.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufHelper.java @@ -24,8 +24,7 @@ import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ConcurrentMap; -/** - */ + public class ProtobufHelper { /** diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufInnerSerializer.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufInnerSerializer.java index 057aab026ee..435295dc478 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufInnerSerializer.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/ProtobufInnerSerializer.java @@ -22,8 +22,7 @@ import java.lang.reflect.Method; import java.lang.reflect.Modifier; -/** - */ + public class ProtobufInnerSerializer { private static final ProtobufHelper PROTOBUF_HELPER = new ProtobufHelper(); diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertor.java index 249c80dd692..41918760cce 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertor.java @@ -25,8 +25,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.core.protocol.transaction.BranchCommitRequest; -/** - */ + public class BranchCommitRequestConvertor implements PbConvertor { @Override public BranchCommitRequestProto convert2Proto(BranchCommitRequest branchCommitRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertor.java index 4afc5387dbf..62c49fcf594 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertor.java @@ -30,8 +30,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.BranchCommitResponse; -/** - */ + public class BranchCommitResponseConvertor implements PbConvertor { @Override public BranchCommitResponseProto convert2Proto(BranchCommitResponse branchCommitResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertor.java index cfc2e7b50a2..5212b1a8110 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertor.java @@ -24,8 +24,7 @@ import org.apache.seata.core.model.BranchType; import org.apache.seata.core.protocol.transaction.BranchRegisterRequest; -/** - */ + public class BranchRegisterRequestConvertor implements PbConvertor { @Override public BranchRegisterRequestProto convert2Proto(BranchRegisterRequest branchRegisterRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertor.java index 335bab3b3cf..2e507248248 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertor.java @@ -27,8 +27,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.BranchRegisterResponse; -/** - */ + public class BranchRegisterResponseConvertor implements PbConvertor { @Override diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertor.java index 3ac1c8d8e4b..29557dc4479 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertor.java @@ -26,8 +26,7 @@ import org.apache.seata.core.model.BranchType; import org.apache.seata.core.protocol.transaction.BranchReportRequest; -/** - */ + public class BranchReportRequestConvertor implements PbConvertor { @Override public BranchReportRequestProto convert2Proto(BranchReportRequest branchReportRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertor.java index ffdc85fb3e8..ee36dab6f81 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertor.java @@ -27,8 +27,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.BranchReportResponse; -/** - */ + public class BranchReportResponseConvertor implements PbConvertor { @Override public BranchReportResponseProto convert2Proto(BranchReportResponse branchReportResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertor.java index de956e817f4..14ff6f5f7c5 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertor.java @@ -25,8 +25,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.core.protocol.transaction.BranchRollbackRequest; -/** - */ + public class BranchRollbackRequestConvertor implements PbConvertor { @Override public BranchRollbackRequestProto convert2Proto(BranchRollbackRequest branchRollbackRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertor.java index 2283bd56288..fc49341f788 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertor.java @@ -30,8 +30,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.BranchRollbackResponse; -/** - */ + public class BranchRollbackResponseConvertor implements PbConvertor { @Override diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertor.java index 287587a4e5d..599b191b46b 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertor.java @@ -22,8 +22,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.core.protocol.transaction.GlobalBeginRequest; -/** - */ + public class GlobalBeginRequestConvertor implements PbConvertor { @Override diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertor.java index df90fc7d8ea..f57bea7b2db 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertor.java @@ -27,8 +27,7 @@ import org.apache.seata.core.protocol.ResultCode; import org.apache.seata.core.protocol.transaction.GlobalBeginResponse; -/** - */ + public class GlobalBeginResponseConvertor implements PbConvertor { @Override public GlobalBeginResponseProto convert2Proto(GlobalBeginResponse globalBeginResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertor.java index c3cae07ed64..58be1c15f6c 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertor.java @@ -23,8 +23,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.core.protocol.transaction.GlobalCommitRequest; -/** - */ + public class GlobalCommitRequestConvertor implements PbConvertor { @Override public GlobalCommitRequestProto convert2Proto(GlobalCommitRequest globalCommitRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertor.java index f3a26717c46..9a7d0bfe712 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertor.java @@ -30,8 +30,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.GlobalCommitResponse; -/** - */ + public class GlobalCommitResponseConvertor implements PbConvertor { @Override public GlobalCommitResponseProto convert2Proto(GlobalCommitResponse globalCommitResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertor.java index 38bc133d028..e4a6a927951 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertor.java @@ -25,8 +25,7 @@ import org.apache.seata.core.model.BranchType; import org.apache.seata.core.protocol.transaction.GlobalLockQueryRequest; -/** - */ + public class GlobalLockQueryRequestConvertor implements PbConvertor { @Override diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertor.java index 5b6ebe16e09..1b12ce470a1 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertor.java @@ -27,8 +27,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.GlobalLockQueryResponse; -/** - */ + public class GlobalLockQueryResponseConvertor implements PbConvertor { @Override diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportRequestConvertor.java index d3e450d8b67..ce6bd382fa6 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportRequestConvertor.java @@ -25,8 +25,7 @@ import org.apache.seata.core.model.GlobalStatus; import org.apache.seata.core.protocol.transaction.GlobalReportRequest; -/** - */ + public class GlobalReportRequestConvertor implements PbConvertor { @Override public GlobalReportRequestProto convert2Proto(GlobalReportRequest globalReportRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportResponseConvertor.java index b72b089c8ac..fadc3d2b3ad 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalReportResponseConvertor.java @@ -30,8 +30,7 @@ import org.apache.seata.core.protocol.ResultCode; import org.apache.seata.core.protocol.transaction.GlobalReportResponse; -/** - */ + public class GlobalReportResponseConvertor implements PbConvertor { @Override public GlobalReportResponseProto convert2Proto(GlobalReportResponse globalStatusResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertor.java index f6c04596986..fbe6fba9286 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertor.java @@ -23,8 +23,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.core.protocol.transaction.GlobalRollbackRequest; -/** - */ + public class GlobalRollbackRequestConvertor implements PbConvertor { @Override public GlobalRollbackRequestProto convert2Proto(GlobalRollbackRequest globalRollbackRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertor.java index 10ff910b95d..7659abe2058 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertor.java @@ -30,8 +30,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.GlobalRollbackResponse; -/** - */ + public class GlobalRollbackResponseConvertor implements PbConvertor { @Override diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertor.java index c15c680b2e6..deca92d824c 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertor.java @@ -23,8 +23,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.core.protocol.transaction.GlobalStatusRequest; -/** - */ + public class GlobalStatusRequestConvertor implements PbConvertor { @Override public GlobalStatusRequestProto convert2Proto(GlobalStatusRequest globalStatusRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertor.java index 7e87e16e6b0..b43bb336cd4 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertor.java @@ -30,8 +30,7 @@ import org.apache.seata.serializer.protobuf.generated.TransactionExceptionCodeProto; import org.apache.seata.core.protocol.transaction.GlobalStatusResponse; -/** - */ + public class GlobalStatusResponseConvertor implements PbConvertor { @Override public GlobalStatusResponseProto convert2Proto(GlobalStatusResponse globalStatusResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertor.java index 3cdec502302..3a35c8b2379 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertor.java @@ -19,8 +19,7 @@ import org.apache.seata.serializer.protobuf.generated.HeartbeatMessageProto; import org.apache.seata.core.protocol.HeartbeatMessage; -/** - */ + public class HeartbeatMessageConvertor implements PbConvertor { @Override public HeartbeatMessageProto convert2Proto(HeartbeatMessage heartbeatMessage) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertor.java index 49efe4a3d8c..ecd1e951bc7 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertor.java @@ -31,8 +31,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.serializer.protobuf.manager.ProtobufConvertManager; -/** - */ + public class MergeResultMessageConvertor implements PbConvertor { @Override public MergedResultMessageProto convert2Proto(MergeResultMessage mergeResultMessage) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergedWarpMessageConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergedWarpMessageConvertor.java index e1c371ca38e..9e48d545df3 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergedWarpMessageConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/MergedWarpMessageConvertor.java @@ -30,8 +30,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.serializer.protobuf.manager.ProtobufConvertManager; -/** - */ + public class MergedWarpMessageConvertor implements PbConvertor { @Override diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/PbConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/PbConvertor.java index dab9c616822..6c28b996f0d 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/PbConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/PbConvertor.java @@ -16,8 +16,7 @@ */ package org.apache.seata.serializer.protobuf.convertor; -/** - */ + public interface PbConvertor { public S convert2Proto(T t); diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertor.java index c98ad51df9d..dcab8ba0317 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertor.java @@ -22,8 +22,7 @@ import org.apache.seata.serializer.protobuf.generated.RegisterRMRequestProto; import org.apache.seata.core.protocol.RegisterRMRequest; -/** - */ + public class RegisterRMRequestConvertor implements PbConvertor { @Override public RegisterRMRequestProto convert2Proto(RegisterRMRequest registerRMRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertor.java index 58a5df21b1a..f1c436f6a93 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertor.java @@ -25,8 +25,7 @@ import org.apache.seata.core.protocol.RegisterRMResponse; import org.apache.seata.core.protocol.ResultCode; -/** - */ + public class RegisterRMResponseConvertor implements PbConvertor { @Override public RegisterRMResponseProto convert2Proto(RegisterRMResponse registerRMResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertor.java index 7cca8b2d27e..f707a996377 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertor.java @@ -22,8 +22,7 @@ import org.apache.seata.serializer.protobuf.generated.MessageTypeProto; import org.apache.seata.serializer.protobuf.generated.RegisterTMRequestProto; -/** - */ + public class RegisterTMRequestConvertor implements PbConvertor { @Override public RegisterTMRequestProto convert2Proto(RegisterTMRequest registerTMRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertor.java index ef2bbaa6d47..54211055f12 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertor.java @@ -25,8 +25,7 @@ import org.apache.seata.core.protocol.RegisterTMResponse; import org.apache.seata.core.protocol.ResultCode; -/** - */ + public class RegisterTMResponseConvertor implements PbConvertor { @Override public RegisterTMResponseProto convert2Proto(RegisterTMResponse registerTMResponse) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertor.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertor.java index 4416150dcfd..c8a21d3e1b8 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertor.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertor.java @@ -24,8 +24,7 @@ import org.apache.seata.core.model.BranchType; import org.apache.seata.core.protocol.transaction.UndoLogDeleteRequest; -/** - */ + public class UndoLogDeleteRequestConvertor implements PbConvertor { @Override public UndoLogDeleteRequestProto convert2Proto(UndoLogDeleteRequest undoLogDeleteRequest) { diff --git a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/manager/ProtobufConvertManager.java b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/manager/ProtobufConvertManager.java index 2f915632efa..4ce861b155a 100644 --- a/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/manager/ProtobufConvertManager.java +++ b/serializer/seata-serializer-protobuf/src/main/java/org/apache/seata/serializer/protobuf/manager/ProtobufConvertManager.java @@ -108,8 +108,7 @@ import java.util.Map; import java.util.concurrent.ConcurrentHashMap; -/** - */ + public class ProtobufConvertManager { private Map convertorMap = new ConcurrentHashMap<>(); diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertorTest.java index 8dbcb6a3c1c..a0f811248a6 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitRequestConvertorTest.java @@ -23,8 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchCommitRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertorTest.java index bff7a3ea18c..6a1dc52e251 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchCommitResponseConvertorTest.java @@ -25,8 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchCommitResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertorTest.java index 7f62d89040d..e0de4e6675a 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterRequestConvertorTest.java @@ -23,8 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchRegisterRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertorTest.java index 85ae52ab42e..2ef597237f2 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRegisterResponseConvertorTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchRegisterResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertorTest.java index 8e6286c7685..4085a16e532 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportRequestConvertorTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchReportRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertorTest.java index ff9fecf9a09..5726329ab33 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchReportResponseConvertorTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchReportResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertorTest.java index d6f0a3d1f3a..b618d17f4d1 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackRequestConvertorTest.java @@ -23,8 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchRollbackRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertorTest.java index b4cb00bb84f..6457ab173bb 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/BranchRollbackResponseConvertorTest.java @@ -25,8 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class BranchRollbackResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertorTest.java index 2945ad0ce73..c46abae4f38 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginRequestConvertorTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalBeginRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertorTest.java index 79431730f5d..95914c664ca 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalBeginResponseConvertorTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalBeginResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertorTest.java index cbc04276df5..1da1e87b569 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitRequestConvertorTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalCommitRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertorTest.java index 9d3504e066f..38c9297fa43 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalCommitResponseConvertorTest.java @@ -25,8 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalCommitResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java index b9f75c2a681..da632fac999 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryRequestConvertorTest.java @@ -23,8 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalLockQueryRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java index 95a84178a74..44353889be2 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalLockQueryResponseConvertorTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalLockQueryResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertorTest.java index 16f4d887b20..d0c5a096e99 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackRequestConvertorTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalRollbackRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertorTest.java index 588dab11b7b..e20a92acd72 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalRollbackResponseConvertorTest.java @@ -25,8 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalRollbackResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertorTest.java index 8e71dd2c55b..50fd4ea1d46 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusRequestConvertorTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalStatusRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertorTest.java index 888c9d3ac59..0d59b81172c 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/GlobalStatusResponseConvertorTest.java @@ -25,8 +25,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class GlobalStatusResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertorTest.java index 1d9f0cbea4b..bfacdcf2ca8 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/HeartbeatMessageConvertorTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class HeartbeatMessageConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeMessageConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeMessageConvertorTest.java index 522897f26bb..5c2bf1dc6bd 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeMessageConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeMessageConvertorTest.java @@ -26,8 +26,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class MergeMessageConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertorTest.java index fc60687b12b..c42efb3d5c5 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/MergeResultMessageConvertorTest.java @@ -27,8 +27,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class MergeResultMessageConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertorTest.java index 8a991a29a0c..173e258a029 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMRequestConvertorTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class RegisterRMRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertorTest.java index 50599870468..3ce78b78261 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterRMResponseConvertorTest.java @@ -23,8 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class RegisterRMResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertorTest.java index f9c407d9b86..f7e22774f1f 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMRequestConvertorTest.java @@ -22,8 +22,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class RegisterTMRequestConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertorTest.java index 60b8aae1300..73e073676d6 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/RegisterTMResponseConvertorTest.java @@ -23,8 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class RegisterTMResponseConvertorTest { @Test diff --git a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertorTest.java b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertorTest.java index e88a810da8b..a4fb3f5c184 100644 --- a/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertorTest.java +++ b/serializer/seata-serializer-protobuf/src/test/java/org/apache/seata/serializer/protobuf/convertor/UndoLogDeleteRequestConvertorTest.java @@ -23,8 +23,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class UndoLogDeleteRequestConvertorTest { private static final String RESOURCE_ID = "resourceId"; diff --git a/server/src/main/java/io/seata/server/cluster/raft/snapshot/RaftSnapshot.java b/server/src/main/java/io/seata/server/cluster/raft/snapshot/RaftSnapshot.java new file mode 100644 index 00000000000..40c7752a520 --- /dev/null +++ b/server/src/main/java/io/seata/server/cluster/raft/snapshot/RaftSnapshot.java @@ -0,0 +1,145 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.seata.server.cluster.raft.snapshot; + +import static org.apache.seata.common.ConfigurationKeys.SERVER_RAFT_COMPRESSOR; +import static org.apache.seata.common.DefaultValues.DEFAULT_RAFT_COMPRESSOR; +import static org.apache.seata.common.DefaultValues.DEFAULT_RAFT_SERIALIZATION; + + +import java.io.Serializable; + +import org.apache.seata.common.util.StringUtils; +import org.apache.seata.config.ConfigurationFactory; +import org.apache.seata.core.compressor.CompressorType; +import org.apache.seata.core.protocol.Version; +import org.apache.seata.core.serializer.SerializerType; + +@Deprecated +public class RaftSnapshot implements Serializable { + + private byte codec = SerializerType.getByName(DEFAULT_RAFT_SERIALIZATION).getCode(); + + private byte compressor = CompressorType + .getByName(ConfigurationFactory.getInstance().getConfig(SERVER_RAFT_COMPRESSOR, DEFAULT_RAFT_COMPRESSOR)) + .getCode(); + + private Object body; + + private String version = Version.getCurrent(); + + private SnapshotType type; + + /** + * Gets body. + * + * @return the body + */ + public Object getBody() { + return body; + } + + /** + * Sets body. + * + * @param body the body + */ + public void setBody(Object body) { + this.body = body; + } + + /** + * Gets codec. + * + * @return the codec + */ + public byte getCodec() { + return codec; + } + + /** + * Sets codec. + * + * @param codec the codec + * @return the codec + */ + public RaftSnapshot setCodec(byte codec) { + this.codec = codec; + return this; + } + + /** + * Gets compressor. + * + * @return the compressor + */ + public byte getCompressor() { + return compressor; + } + + /** + * Sets compressor. + * + * @param compressor the compressor + * @return the compressor + */ + public RaftSnapshot setCompressor(byte compressor) { + this.compressor = compressor; + return this; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public SnapshotType getType() { + return type; + } + + public void setType(SnapshotType type) { + this.type = type; + } + + @Override + public String toString() { + return StringUtils.toString(this); + } + + public enum SnapshotType { + + /** + * session snapshot + */ + session("session"), + /** + * leader metadata snapshot + */ + leader_metadata("leader_metadata"); + + final String type; + + SnapshotType(String type) { + this.type = type; + } + + } + +} diff --git a/server/src/main/java/io/seata/server/cluster/raft/sync/msg/RaftSyncMessage.java b/server/src/main/java/io/seata/server/cluster/raft/sync/msg/RaftSyncMessage.java new file mode 100644 index 00000000000..36827a8fc7c --- /dev/null +++ b/server/src/main/java/io/seata/server/cluster/raft/sync/msg/RaftSyncMessage.java @@ -0,0 +1,115 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package io.seata.server.cluster.raft.sync.msg; + +import static org.apache.seata.common.DefaultValues.DEFAULT_RAFT_COMPRESSOR; +import static org.apache.seata.common.DefaultValues.DEFAULT_RAFT_SERIALIZATION; +import static org.apache.seata.core.constants.ConfigurationKeys.SERVER_RAFT_COMPRESSOR; + + +import org.apache.seata.common.util.StringUtils; +import org.apache.seata.config.ConfigurationFactory; +import org.apache.seata.core.compressor.CompressorType; +import org.apache.seata.core.protocol.Version; +import org.apache.seata.core.serializer.SerializerType; + +@Deprecated +public class RaftSyncMessage implements java.io.Serializable { + + private static final long serialVersionUID = 8225279734319945365L; + private byte codec = SerializerType.getByName(DEFAULT_RAFT_SERIALIZATION).getCode(); + + private byte compressor = CompressorType + .getByName(ConfigurationFactory.getInstance().getConfig(SERVER_RAFT_COMPRESSOR, DEFAULT_RAFT_COMPRESSOR)) + .getCode(); + + private Object body; + + private String version = Version.getCurrent(); + + /** + * Gets body. + * + * @return the body + */ + public Object getBody() { + return body; + } + + /** + * Sets body. + * + * @param body the body + */ + public void setBody(Object body) { + this.body = body; + } + + /** + * Gets codec. + * + * @return the codec + */ + public byte getCodec() { + return codec; + } + + /** + * Sets codec. + * + * @param codec the codec + * @return the codec + */ + public RaftSyncMessage setCodec(byte codec) { + this.codec = codec; + return this; + } + + /** + * Gets compressor. + * + * @return the compressor + */ + public byte getCompressor() { + return compressor; + } + + /** + * Sets compressor. + * + * @param compressor the compressor + * @return the compressor + */ + public RaftSyncMessage setCompressor(byte compressor) { + this.compressor = compressor; + return this; + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + @Override + public String toString() { + return StringUtils.toString(this); + } + +} diff --git a/server/src/main/java/org/apache/seata/server/cluster/raft/RaftStateMachine.java b/server/src/main/java/org/apache/seata/server/cluster/raft/RaftStateMachine.java index 8e984d9231d..4bd0bf77a41 100644 --- a/server/src/main/java/org/apache/seata/server/cluster/raft/RaftStateMachine.java +++ b/server/src/main/java/org/apache/seata/server/cluster/raft/RaftStateMachine.java @@ -38,7 +38,6 @@ import org.apache.seata.common.holder.ObjectHolder; import org.apache.seata.common.metadata.ClusterRole; import org.apache.seata.common.metadata.Node; -import org.apache.seata.common.store.StoreMode; import org.apache.seata.common.util.StringUtils; import org.apache.seata.server.cluster.raft.context.SeataClusterContext; import org.apache.seata.server.cluster.raft.snapshot.metadata.LeaderMetadataSnapshotFile; @@ -67,8 +66,8 @@ import org.springframework.context.ApplicationEventPublisher; import org.springframework.core.env.Environment; -import static org.apache.seata.common.Constants.OBJECT_KEY_SPRING_APPLICATION_CONTEXT; import static org.apache.seata.common.Constants.OBJECT_KEY_SPRING_CONFIGURABLE_ENVIRONMENT; +import static org.apache.seata.common.Constants.OBJECT_KEY_SPRING_APPLICATION_CONTEXT; import static org.apache.seata.common.DefaultValues.SERVICE_OFFSET_SPRING_BOOT; import static org.apache.seata.server.cluster.raft.sync.msg.RaftSyncMsgType.ADD_BRANCH_SESSION; import static org.apache.seata.server.cluster.raft.sync.msg.RaftSyncMsgType.ADD_GLOBAL_SESSION; @@ -118,7 +117,7 @@ public RaftStateMachine(String group) { return null; }); registryStoreSnapshotFile(new LeaderMetadataSnapshotFile(group)); - if (StoreMode.RAFT.getName().equalsIgnoreCase(mode)) { + if (StoreConfig.StoreMode.RAFT.getName().equalsIgnoreCase(mode)) { registryStoreSnapshotFile(new SessionSnapshotFile(group)); EXECUTES.put(ADD_GLOBAL_SESSION, new AddGlobalSessionExecute()); EXECUTES.put(ADD_BRANCH_SESSION, new AddBranchSessionExecute()); @@ -291,7 +290,7 @@ public void setRaftLeaderMetadata(RaftClusterMetadata raftClusterMetadata) { public RaftClusterMetadata createNewRaftClusterMetadata() { RaftClusterMetadata metadata = new RaftClusterMetadata(this.currentTerm.get()); Node leader = metadata.createNode(XID.getIpAddress(), XID.getPort(), - Integer.parseInt(((Environment)ObjectHolder.INSTANCE.getObject(OBJECT_KEY_SPRING_CONFIGURABLE_ENVIRONMENT)) + Integer.parseInt(((Environment) ObjectHolder.INSTANCE.getObject(OBJECT_KEY_SPRING_CONFIGURABLE_ENVIRONMENT)) .getProperty("server.port", String.valueOf(8088))), group, Collections.emptyMap()); leader.setRole(ClusterRole.LEADER); diff --git a/server/src/main/java/org/apache/seata/server/cluster/raft/serializer/CustomDeserializer.java b/server/src/main/java/org/apache/seata/server/cluster/raft/serializer/CustomDeserializer.java new file mode 100644 index 00000000000..1d368237d64 --- /dev/null +++ b/server/src/main/java/org/apache/seata/server/cluster/raft/serializer/CustomDeserializer.java @@ -0,0 +1,39 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE + * file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file + * to You under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the + * License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on + * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the + * specific language governing permissions and limitations under the License. + */ +package org.apache.seata.server.cluster.raft.serializer; + +import java.io.IOException; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonDeserializer; + +public class CustomDeserializer extends JsonDeserializer> { + + String oldPackage = "io.seata.server"; + + String currentPackage = "org.apache.seata.server"; + + @Override + public Class deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) + throws IOException { + String className = jsonParser.getValueAsString(); + if (className.startsWith(oldPackage)) { + className = className.replaceFirst(oldPackage, currentPackage); + } + try { + return Class.forName(className); + } catch (ClassNotFoundException e) { + throw new RuntimeException(e.getMessage(), e); + } + } +} \ No newline at end of file diff --git a/server/src/main/java/org/apache/seata/server/cluster/raft/snapshot/RaftSnapshotSerializer.java b/server/src/main/java/org/apache/seata/server/cluster/raft/snapshot/RaftSnapshotSerializer.java index 0d03ccd82fb..cdf065a1552 100644 --- a/server/src/main/java/org/apache/seata/server/cluster/raft/snapshot/RaftSnapshotSerializer.java +++ b/server/src/main/java/org/apache/seata/server/cluster/raft/snapshot/RaftSnapshotSerializer.java @@ -39,11 +39,23 @@ public class RaftSnapshotSerializer { public static byte[] encode(RaftSnapshot raftSnapshot) throws IOException { try (ByteArrayOutputStream bos = new ByteArrayOutputStream(); - ObjectOutputStream oos = new ObjectOutputStream(bos)) { + ObjectOutputStream oos = new ObjectOutputStream(bos)) { Serializer serializer = - EnhancedServiceLoader.load(Serializer.class, SerializerType.getByCode(raftSnapshot.getCodec()).name()); + EnhancedServiceLoader.load(Serializer.class, SerializerType.getByCode(raftSnapshot.getCodec()).name()); Optional.ofNullable(raftSnapshot.getBody()).ifPresent(value -> raftSnapshot.setBody( - CompressorFactory.getCompressor(raftSnapshot.getCompressor()).compress(serializer.serialize(value)))); + CompressorFactory.getCompressor(raftSnapshot.getCompressor()).compress(serializer.serialize(value)))); + oos.writeObject(raftSnapshot); + return bos.toByteArray(); + } + } + + public static byte[] encode(io.seata.server.cluster.raft.snapshot.RaftSnapshot raftSnapshot) throws IOException { + try (ByteArrayOutputStream bos = new ByteArrayOutputStream(); + ObjectOutputStream oos = new ObjectOutputStream(bos)) { + Serializer serializer = + EnhancedServiceLoader.load(Serializer.class, SerializerType.getByCode(raftSnapshot.getCodec()).name()); + Optional.ofNullable(raftSnapshot.getBody()).ifPresent(value -> raftSnapshot.setBody( + CompressorFactory.getCompressor(raftSnapshot.getCompressor()).compress(serializer.serialize(value)))); oos.writeObject(raftSnapshot); return bos.toByteArray(); } @@ -51,13 +63,25 @@ public static byte[] encode(RaftSnapshot raftSnapshot) throws IOException { public static RaftSnapshot decode(byte[] raftSnapshotByte) throws IOException { try (ByteArrayInputStream bin = new ByteArrayInputStream(raftSnapshotByte); - ObjectInputStream ois = new ObjectInputStream(bin)) { - RaftSnapshot raftSnapshot = (RaftSnapshot)ois.readObject(); + ObjectInputStream ois = new ObjectInputStream(bin)) { + Object object = ois.readObject(); + RaftSnapshot raftSnapshot; + if (object instanceof io.seata.server.cluster.raft.snapshot.RaftSnapshot) { + raftSnapshot = new RaftSnapshot(); + io.seata.server.cluster.raft.snapshot.RaftSnapshot oldRaftSnapshot = + (io.seata.server.cluster.raft.snapshot.RaftSnapshot)object; + raftSnapshot.setBody(oldRaftSnapshot.getBody()); + raftSnapshot.setVersion(oldRaftSnapshot.getVersion()); + raftSnapshot.setCompressor(oldRaftSnapshot.getCompressor()); + raftSnapshot.setType(RaftSnapshot.SnapshotType.valueOf(oldRaftSnapshot.getType().name())); + } else { + raftSnapshot = (RaftSnapshot)object; + } Serializer serializer = - EnhancedServiceLoader.load(Serializer.class, SerializerType.getByCode(raftSnapshot.getCodec()).name()); + EnhancedServiceLoader.load(Serializer.class, SerializerType.getByCode(raftSnapshot.getCodec()).name()); Optional.ofNullable(raftSnapshot.getBody()) - .ifPresent(value -> raftSnapshot.setBody(serializer.deserialize(CompressorFactory - .getCompressor(raftSnapshot.getCompressor()).decompress((byte[])raftSnapshot.getBody())))); + .ifPresent(value -> raftSnapshot.setBody(serializer.deserialize(CompressorFactory + .getCompressor(raftSnapshot.getCompressor()).decompress((byte[])raftSnapshot.getBody())))); return raftSnapshot; } catch (ClassNotFoundException e) { LOGGER.info("Failed to read raft snapshot: {}", e.getMessage(), e); diff --git a/server/src/main/java/org/apache/seata/server/cluster/raft/sync/RaftSyncMessageSerializer.java b/server/src/main/java/org/apache/seata/server/cluster/raft/sync/RaftSyncMessageSerializer.java index 19fb4f8e1d9..5251d55f981 100644 --- a/server/src/main/java/org/apache/seata/server/cluster/raft/sync/RaftSyncMessageSerializer.java +++ b/server/src/main/java/org/apache/seata/server/cluster/raft/sync/RaftSyncMessageSerializer.java @@ -38,11 +38,23 @@ public class RaftSyncMessageSerializer { public static byte[] encode(RaftSyncMessage raftSyncMessage) throws IOException { try (ByteArrayOutputStream bos = new ByteArrayOutputStream(); - ObjectOutputStream oos = new ObjectOutputStream(bos)) { - Serializer serializer = - EnhancedServiceLoader.load(Serializer.class, SerializerType.getByCode(raftSyncMessage.getCodec()).name()); - Optional.ofNullable(raftSyncMessage.getBody()).ifPresent(value -> raftSyncMessage.setBody( - CompressorFactory.getCompressor(raftSyncMessage.getCompressor()).compress(serializer.serialize(value)))); + ObjectOutputStream oos = new ObjectOutputStream(bos)) { + Serializer serializer = EnhancedServiceLoader.load(Serializer.class, + SerializerType.getByCode(raftSyncMessage.getCodec()).name()); + Optional.ofNullable(raftSyncMessage.getBody()).ifPresent(value -> raftSyncMessage.setBody(CompressorFactory + .getCompressor(raftSyncMessage.getCompressor()).compress(serializer.serialize(value)))); + oos.writeObject(raftSyncMessage); + return bos.toByteArray(); + } + } + + public static byte[] encode(io.seata.server.cluster.raft.sync.msg.RaftSyncMessage raftSyncMessage) throws IOException { + try (ByteArrayOutputStream bos = new ByteArrayOutputStream(); + ObjectOutputStream oos = new ObjectOutputStream(bos)) { + Serializer serializer = EnhancedServiceLoader.load(Serializer.class, + SerializerType.getByCode(raftSyncMessage.getCodec()).name()); + Optional.ofNullable(raftSyncMessage.getBody()).ifPresent(value -> raftSyncMessage.setBody(CompressorFactory + .getCompressor(raftSyncMessage.getCompressor()).compress(serializer.serialize(value)))); oos.writeObject(raftSyncMessage); return bos.toByteArray(); } @@ -50,13 +62,25 @@ public static byte[] encode(RaftSyncMessage raftSyncMessage) throws IOException public static RaftSyncMessage decode(byte[] raftSyncMsgByte) { try (ByteArrayInputStream bin = new ByteArrayInputStream(raftSyncMsgByte); - ObjectInputStream ois = new ObjectInputStream(bin)) { - RaftSyncMessage raftSyncMessage = (RaftSyncMessage)ois.readObject(); - Serializer serializer = - EnhancedServiceLoader.load(Serializer.class, SerializerType.getByCode(raftSyncMessage.getCodec()).name()); + ObjectInputStream ois = new ObjectInputStream(bin)) { + Object object = ois.readObject(); + RaftSyncMessage raftSyncMessage; + if (object instanceof io.seata.server.cluster.raft.sync.msg.RaftSyncMessage) { + io.seata.server.cluster.raft.sync.msg.RaftSyncMessage oldRaftSyncMessage = + (io.seata.server.cluster.raft.sync.msg.RaftSyncMessage)object; + raftSyncMessage = new RaftSyncMessage(); + raftSyncMessage.setCodec(oldRaftSyncMessage.getCodec()); + raftSyncMessage.setCompressor(oldRaftSyncMessage.getCompressor()); + raftSyncMessage.setVersion(oldRaftSyncMessage.getVersion()); + raftSyncMessage.setBody(oldRaftSyncMessage.getBody()); + } else { + raftSyncMessage = (RaftSyncMessage)object; + } + Serializer serializer = EnhancedServiceLoader.load(Serializer.class, + SerializerType.getByCode(raftSyncMessage.getCodec()).name()); Optional.ofNullable(raftSyncMessage.getBody()) - .ifPresent(value -> raftSyncMessage.setBody(serializer.deserialize(CompressorFactory - .getCompressor(raftSyncMessage.getCompressor()).decompress((byte[]) raftSyncMessage.getBody())))); + .ifPresent(value -> raftSyncMessage.setBody(serializer.deserialize(CompressorFactory + .getCompressor(raftSyncMessage.getCompressor()).decompress((byte[])raftSyncMessage.getBody())))); return raftSyncMessage; } catch (ClassNotFoundException | IOException e) { LOGGER.info("Failed to read raft synchronization log: {}", e.getMessage(), e); diff --git a/server/src/test/java/org/apache/seata/server/raft/RaftSyncMessageTest.java b/server/src/test/java/org/apache/seata/server/raft/RaftSyncMessageTest.java index 72da7688219..5510a190662 100644 --- a/server/src/test/java/org/apache/seata/server/raft/RaftSyncMessageTest.java +++ b/server/src/test/java/org/apache/seata/server/raft/RaftSyncMessageTest.java @@ -26,12 +26,12 @@ import org.apache.seata.common.metadata.Node; import org.apache.seata.core.exception.TransactionException; import org.apache.seata.core.model.BranchType; +import org.apache.seata.server.cluster.raft.snapshot.RaftSnapshot; import org.apache.seata.server.cluster.raft.sync.msg.RaftBranchSessionSyncMsg; import org.apache.seata.server.cluster.raft.sync.msg.RaftClusterMetadataMsg; import org.apache.seata.server.cluster.raft.sync.msg.RaftGlobalSessionSyncMsg; import org.apache.seata.server.cluster.raft.sync.msg.RaftSyncMessage; import org.apache.seata.server.cluster.raft.sync.RaftSyncMessageSerializer; -import org.apache.seata.server.cluster.raft.snapshot.RaftSnapshot; import org.apache.seata.server.cluster.raft.snapshot.RaftSnapshotSerializer; import org.apache.seata.server.cluster.raft.snapshot.session.RaftSessionSnapshot; import org.apache.seata.server.cluster.raft.sync.msg.dto.BranchTransactionDTO; @@ -81,13 +81,32 @@ public void testMsgSerialize() throws IOException { Assertions.assertEquals(1234, ((RaftBranchSessionSyncMsg) raftSyncMessageByBranch.getBody()).getBranchSession().getBranchId()); } + @Test + public void testMsgSerializeCompatible() throws IOException { + io.seata.server.cluster.raft.sync.msg.RaftSyncMessage raftSyncMessage = new io.seata.server.cluster.raft.sync.msg.RaftSyncMessage(); + RaftGlobalSessionSyncMsg raftSessionSyncMsg = new RaftGlobalSessionSyncMsg(); + RaftBranchSessionSyncMsg raftBranchSessionMsg = new RaftBranchSessionSyncMsg(); + raftBranchSessionMsg.setBranchSession(new BranchTransactionDTO("123:123", 1234)); + raftSessionSyncMsg.setGlobalSession(new GlobalTransactionDTO("123:123")); + raftSyncMessage.setBody(raftSessionSyncMsg); + byte[] msg = RaftSyncMessageSerializer.encode(raftSyncMessage); + RaftSyncMessage raftSyncMessage1 = RaftSyncMessageSerializer.decode(msg); + RaftSyncMessage raftSyncMessage2 = new RaftSyncMessage(); + raftSyncMessage2.setBody(raftBranchSessionMsg); + byte[] msg2 = RaftSyncMessageSerializer.encode(raftSyncMessage2); + RaftSyncMessage raftSyncMessageByBranch = RaftSyncMessageSerializer.decode(msg2); + Assertions.assertEquals("123:123", ((RaftBranchSessionSyncMsg) raftSyncMessageByBranch.getBody()).getBranchSession().getXid()); + Assertions.assertEquals("123:123", ((RaftGlobalSessionSyncMsg) raftSyncMessage1.getBody()).getGlobalSession().getXid()); + Assertions.assertEquals(1234, ((RaftBranchSessionSyncMsg) raftSyncMessageByBranch.getBody()).getBranchSession().getBranchId()); + } + @Test public void testSnapshotSerialize() throws IOException, TransactionException { Map sessionMap = new HashMap<>(); GlobalSession globalSession = GlobalSession.createGlobalSession("123", "123", "123", 11111); sessionMap.put(globalSession.getXid(), globalSession); globalSession - .addBranch(SessionHelper.newBranchByGlobal(globalSession, BranchType.AT, "!23", null, "123", "123")); + .addBranch(SessionHelper.newBranchByGlobal(globalSession, BranchType.AT, "!23", null, "123", "123")); RaftSessionSnapshot sessionSnapshot = new RaftSessionSnapshot(); sessionMap.forEach((xid, session) -> sessionSnapshot.convert2GlobalSessionByte(session)); RaftSnapshot raftSnapshot = new RaftSnapshot(); @@ -101,6 +120,27 @@ public void testSnapshotSerialize() throws IOException, TransactionException { Assertions.assertEquals(1, map.get(globalSession.getXid()).getBranchSessions().size()); } + @Test + public void testSnapshotCompatible() throws IOException, TransactionException { + Map sessionMap = new HashMap<>(); + GlobalSession globalSession = GlobalSession.createGlobalSession("123", "123", "123", 11111); + sessionMap.put(globalSession.getXid(), globalSession); + globalSession + .addBranch(SessionHelper.newBranchByGlobal(globalSession, BranchType.AT, "!23", null, "123", "123")); + RaftSessionSnapshot sessionSnapshot = new RaftSessionSnapshot(); + sessionMap.forEach((xid, session) -> sessionSnapshot.convert2GlobalSessionByte(session)); + io.seata.server.cluster.raft.snapshot.RaftSnapshot raftSnapshot = new io.seata.server.cluster.raft.snapshot.RaftSnapshot(); + raftSnapshot.setBody(sessionSnapshot); + raftSnapshot.setType(io.seata.server.cluster.raft.snapshot.RaftSnapshot.SnapshotType.session); + byte[] msg = RaftSnapshotSerializer.encode(raftSnapshot); + RaftSnapshot raftSnapshot1 = RaftSnapshotSerializer.decode(msg); + RaftSessionSnapshot sessionSnapshot2 = (RaftSessionSnapshot)raftSnapshot1.getBody(); + Map map = sessionSnapshot2.convert2GlobalSession(); + Assertions.assertEquals(1, map.size()); + Assertions.assertNotNull(map.get(globalSession.getXid())); + Assertions.assertEquals(1, map.get(globalSession.getXid()).getBranchSessions().size()); + } + @Test public void testRaftClusterMetadataSerialize() throws IOException { RaftSyncMessage raftSyncMessage = new RaftSyncMessage(); diff --git a/spring/src/main/java/org/apache/seata/rm/fence/SpringFenceConfig.java b/spring/src/main/java/org/apache/seata/rm/fence/SpringFenceConfig.java index a1272cc6344..cb4e3aed605 100644 --- a/spring/src/main/java/org/apache/seata/rm/fence/SpringFenceConfig.java +++ b/spring/src/main/java/org/apache/seata/rm/fence/SpringFenceConfig.java @@ -25,8 +25,7 @@ import javax.sql.DataSource; -/** - */ + public class SpringFenceConfig extends CommonFenceConfig implements InitializingBean { /** diff --git a/spring/src/main/java/org/apache/seata/spring/SpringTargetClassParser.java b/spring/src/main/java/org/apache/seata/spring/SpringTargetClassParser.java index fd40aed2165..fd6914a2d9d 100644 --- a/spring/src/main/java/org/apache/seata/spring/SpringTargetClassParser.java +++ b/spring/src/main/java/org/apache/seata/spring/SpringTargetClassParser.java @@ -19,8 +19,7 @@ import org.apache.seata.integration.tx.api.interceptor.parser.TargetClassParser; import org.apache.seata.spring.util.SpringProxyUtils; -/** - */ + public class SpringTargetClassParser implements TargetClassParser { @Override public Class findTargetClass(Object target) throws Exception { diff --git a/spring/src/main/java/org/apache/seata/spring/annotation/AdapterInvocationWrapper.java b/spring/src/main/java/org/apache/seata/spring/annotation/AdapterInvocationWrapper.java index 03fc778f523..08a67e11aac 100644 --- a/spring/src/main/java/org/apache/seata/spring/annotation/AdapterInvocationWrapper.java +++ b/spring/src/main/java/org/apache/seata/spring/annotation/AdapterInvocationWrapper.java @@ -21,8 +21,7 @@ import org.apache.seata.integration.tx.api.interceptor.InvocationWrapper; import org.aopalliance.intercept.MethodInvocation; -/** - */ + public class AdapterInvocationWrapper implements InvocationWrapper { private MethodInvocation invocation; diff --git a/spring/src/main/java/org/apache/seata/spring/annotation/AdapterSpringSeataInterceptor.java b/spring/src/main/java/org/apache/seata/spring/annotation/AdapterSpringSeataInterceptor.java index f87c0a4caac..129458502f3 100644 --- a/spring/src/main/java/org/apache/seata/spring/annotation/AdapterSpringSeataInterceptor.java +++ b/spring/src/main/java/org/apache/seata/spring/annotation/AdapterSpringSeataInterceptor.java @@ -27,8 +27,7 @@ import org.springframework.core.Ordered; import org.springframework.util.Assert; -/** - */ + public class AdapterSpringSeataInterceptor implements MethodInterceptor, SeataInterceptor, Ordered { private ProxyInvocationHandler proxyInvocationHandler; diff --git a/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyAdvice.java b/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyAdvice.java index 5a098085e01..d85efc63adb 100644 --- a/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyAdvice.java +++ b/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyAdvice.java @@ -26,8 +26,7 @@ import org.aopalliance.intercept.MethodInvocation; import org.springframework.aop.IntroductionInfo; -/** - */ + public class SeataAutoDataSourceProxyAdvice implements MethodInterceptor, IntroductionInfo { private final BranchType branchType; diff --git a/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyCreator.java b/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyCreator.java index 0c576e54ecd..50aff3449dc 100644 --- a/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyCreator.java +++ b/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyCreator.java @@ -32,8 +32,7 @@ import org.springframework.aop.framework.autoproxy.AbstractAutoProxyCreator; import org.springframework.aop.support.DefaultIntroductionAdvisor; -/** - */ + public class SeataAutoDataSourceProxyCreator extends AbstractAutoProxyCreator { private static final Logger LOGGER = LoggerFactory.getLogger(SeataAutoDataSourceProxyCreator.class); diff --git a/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataProxy.java b/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataProxy.java index 22fa9f626a6..46abdcfbd1d 100644 --- a/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataProxy.java +++ b/spring/src/main/java/org/apache/seata/spring/annotation/datasource/SeataProxy.java @@ -16,7 +16,6 @@ */ package org.apache.seata.spring.annotation.datasource; -/** - */ + public interface SeataProxy { } diff --git a/spring/src/main/java/org/apache/seata/spring/remoting/parser/RemotingFactoryBeanParser.java b/spring/src/main/java/org/apache/seata/spring/remoting/parser/RemotingFactoryBeanParser.java index 5f332557ff6..0177aa6e231 100644 --- a/spring/src/main/java/org/apache/seata/spring/remoting/parser/RemotingFactoryBeanParser.java +++ b/spring/src/main/java/org/apache/seata/spring/remoting/parser/RemotingFactoryBeanParser.java @@ -24,8 +24,7 @@ import org.springframework.context.ApplicationContext; import org.springframework.util.Assert; -/** - */ + public class RemotingFactoryBeanParser extends AbstractedRemotingParser { public ApplicationContext applicationContext; diff --git a/spring/src/test/java/org/apache/seata/spring/annotation/MethodDescTest.java b/spring/src/test/java/org/apache/seata/spring/annotation/MethodDescTest.java index dcf9c9ed3c1..248ffce41bb 100644 --- a/spring/src/test/java/org/apache/seata/spring/annotation/MethodDescTest.java +++ b/spring/src/test/java/org/apache/seata/spring/annotation/MethodDescTest.java @@ -30,8 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class MethodDescTest { private static final GlobalTransactionScanner GLOBAL_TRANSACTION_SCANNER = new GlobalTransactionScanner( diff --git a/spring/src/test/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyTest.java b/spring/src/test/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyTest.java index 394cbe306c8..6dd69267bb4 100644 --- a/spring/src/test/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyTest.java +++ b/spring/src/test/java/org/apache/seata/spring/annotation/datasource/SeataAutoDataSourceProxyTest.java @@ -44,8 +44,7 @@ import static org.mockito.Mockito.times; import static org.mockito.Mockito.never; -/** - */ + class SeataAutoDataSourceProxyTest { private static final String PRIMARY_NAME = "primaryDataSource"; diff --git a/spring/src/test/java/org/apache/seata/spring/util/MockAdvice1.java b/spring/src/test/java/org/apache/seata/spring/util/MockAdvice1.java index 6e11a73ca00..8736a74c215 100644 --- a/spring/src/test/java/org/apache/seata/spring/util/MockAdvice1.java +++ b/spring/src/test/java/org/apache/seata/spring/util/MockAdvice1.java @@ -19,8 +19,7 @@ import org.aopalliance.aop.Advice; import org.springframework.core.Ordered; -/** - */ + public class MockAdvice1 implements Advice, Ordered { private Integer order; diff --git a/spring/src/test/java/org/apache/seata/spring/util/MockAdvice2.java b/spring/src/test/java/org/apache/seata/spring/util/MockAdvice2.java index c7e669d8cbe..71c927977c4 100644 --- a/spring/src/test/java/org/apache/seata/spring/util/MockAdvice2.java +++ b/spring/src/test/java/org/apache/seata/spring/util/MockAdvice2.java @@ -19,8 +19,7 @@ import org.aopalliance.aop.Advice; import org.springframework.core.Ordered; -/** - */ + public class MockAdvice2 implements Advice, Ordered { private Integer order; diff --git a/spring/src/test/java/org/apache/seata/spring/util/MockAdvisor.java b/spring/src/test/java/org/apache/seata/spring/util/MockAdvisor.java index 7ed66f0ba01..cb146c68644 100644 --- a/spring/src/test/java/org/apache/seata/spring/util/MockAdvisor.java +++ b/spring/src/test/java/org/apache/seata/spring/util/MockAdvisor.java @@ -20,8 +20,7 @@ import org.springframework.aop.Advisor; import org.springframework.core.Ordered; -/** - */ + public class MockAdvisor implements Advisor, Ordered { private Integer order; diff --git a/spring/src/test/java/org/apache/seata/spring/util/MockAnnotationOrdered.java b/spring/src/test/java/org/apache/seata/spring/util/MockAnnotationOrdered.java index 9ea8e4306c5..4899f2822bb 100644 --- a/spring/src/test/java/org/apache/seata/spring/util/MockAnnotationOrdered.java +++ b/spring/src/test/java/org/apache/seata/spring/util/MockAnnotationOrdered.java @@ -18,8 +18,7 @@ import org.springframework.core.annotation.Order; -/** - */ + @Order(1) public class MockAnnotationOrdered { } diff --git a/spring/src/test/java/org/apache/seata/spring/util/MockOrdered.java b/spring/src/test/java/org/apache/seata/spring/util/MockOrdered.java index ed86021dee1..bcd4bb45bfc 100644 --- a/spring/src/test/java/org/apache/seata/spring/util/MockOrdered.java +++ b/spring/src/test/java/org/apache/seata/spring/util/MockOrdered.java @@ -18,8 +18,7 @@ import org.springframework.core.Ordered; -/** - */ + public class MockOrdered implements Ordered { private Integer order; diff --git a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/AntlrDelegatingSQLRecognizerFactory.java b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/AntlrDelegatingSQLRecognizerFactory.java index de559841adc..4b1b60882d6 100644 --- a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/AntlrDelegatingSQLRecognizerFactory.java +++ b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/AntlrDelegatingSQLRecognizerFactory.java @@ -25,8 +25,7 @@ import java.lang.reflect.Constructor; import java.util.List; -/** - */ + @LoadLevel(name = SqlParserType.SQL_PARSER_TYPE_ANTLR) public class AntlrDelegatingSQLRecognizerFactory implements SQLRecognizerFactory { diff --git a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/DeleteSpecificationSqlListener.java b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/DeleteSpecificationSqlListener.java index 12e33964e4f..99c17accbb1 100644 --- a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/DeleteSpecificationSqlListener.java +++ b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/DeleteSpecificationSqlListener.java @@ -21,8 +21,7 @@ import org.apache.seata.sqlparser.antlr.mysql.parser.MySqlParserBaseListener; import org.apache.seata.sqlparser.antlr.mysql.visit.StatementSqlVisitor; -/** - */ + public class DeleteSpecificationSqlListener extends MySqlParserBaseListener { private MySqlContext sqlQueryContext; diff --git a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/SelectSpecificationSqlListener.java b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/SelectSpecificationSqlListener.java index a13cfea6965..b41e8a10db9 100644 --- a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/SelectSpecificationSqlListener.java +++ b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/SelectSpecificationSqlListener.java @@ -23,8 +23,7 @@ import java.util.List; -/** - */ + public class SelectSpecificationSqlListener extends MySqlParserBaseListener { private MySqlContext sqlQueryContext; diff --git a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/UpdateSpecificationSqlListener.java b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/UpdateSpecificationSqlListener.java index 60c42ec795e..04088c8b062 100644 --- a/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/UpdateSpecificationSqlListener.java +++ b/sqlparser/seata-sqlparser-antlr/src/main/java/org/apache/seata/sqlparser/antlr/mysql/listener/UpdateSpecificationSqlListener.java @@ -21,8 +21,7 @@ import org.apache.seata.sqlparser.antlr.mysql.parser.MySqlParserBaseListener; import org.apache.seata.sqlparser.antlr.mysql.visit.StatementSqlVisitor; -/** - */ + public class UpdateSpecificationSqlListener extends MySqlParserBaseListener { diff --git a/sqlparser/seata-sqlparser-antlr/src/test/java/org/apache/seata/sqlparser/antlr/AntlrIsolationTest.java b/sqlparser/seata-sqlparser-antlr/src/test/java/org/apache/seata/sqlparser/antlr/AntlrIsolationTest.java index afb8ef87d2b..43ca0d8db10 100644 --- a/sqlparser/seata-sqlparser-antlr/src/test/java/org/apache/seata/sqlparser/antlr/AntlrIsolationTest.java +++ b/sqlparser/seata-sqlparser-antlr/src/test/java/org/apache/seata/sqlparser/antlr/AntlrIsolationTest.java @@ -26,8 +26,7 @@ import java.util.List; -/** - */ + public class AntlrIsolationTest { String TEST_SQL = "SELECT name,phone FROM t1 WHERE id = 1 and username = '11' and age = 'a' or hz = '1' or aa = 1 FOR UPDATE"; diff --git a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SQLRecognizerFactory.java b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SQLRecognizerFactory.java index f5f9f7b0a1a..0bb577c916e 100644 --- a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SQLRecognizerFactory.java +++ b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SQLRecognizerFactory.java @@ -18,8 +18,7 @@ import java.util.List; -/** - */ + public interface SQLRecognizerFactory { List create(String sql, String dbType); } diff --git a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SqlParserType.java b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SqlParserType.java index b907b06440e..4097d60b73e 100644 --- a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SqlParserType.java +++ b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/SqlParserType.java @@ -16,8 +16,7 @@ */ package org.apache.seata.sqlparser; -/** - */ + public interface SqlParserType { /** * The constant SQL_PARSER_TYPE_DRUID. diff --git a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/DbTypeParser.java b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/DbTypeParser.java index a840d41c809..0778e213805 100644 --- a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/DbTypeParser.java +++ b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/DbTypeParser.java @@ -16,8 +16,7 @@ */ package org.apache.seata.sqlparser.util; -/** - */ + public interface DbTypeParser { String parseFromJdbcUrl(String jdbcUrl); } diff --git a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/JdbcConstants.java b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/JdbcConstants.java index 7d89eb6fedd..d923f8918f7 100644 --- a/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/JdbcConstants.java +++ b/sqlparser/seata-sqlparser-core/src/main/java/org/apache/seata/sqlparser/util/JdbcConstants.java @@ -16,8 +16,7 @@ */ package org.apache.seata.sqlparser.util; -/** - */ + public interface JdbcConstants { String ORACLE = "oracle"; diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DefaultDruidLoader.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DefaultDruidLoader.java index 36a9db76dbb..d40f6716e4d 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DefaultDruidLoader.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DefaultDruidLoader.java @@ -25,8 +25,7 @@ import static org.apache.seata.common.DefaultValues.DRUID_LOCATION; -/** - */ + class DefaultDruidLoader implements DruidLoader { private final static DefaultDruidLoader DRUID_LOADER = new DefaultDruidLoader(DRUID_LOCATION); diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserImpl.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserImpl.java index 50376652269..614c49bbe38 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserImpl.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserImpl.java @@ -19,8 +19,7 @@ import com.alibaba.druid.util.JdbcUtils; import org.apache.seata.sqlparser.util.DbTypeParser; -/** - */ + class DruidDbTypeParserImpl implements DbTypeParser { @Override public String parseFromJdbcUrl(String jdbcUrl) { diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingDbTypeParser.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingDbTypeParser.java index a5b22bc0c3c..31ff34f7910 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingDbTypeParser.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingDbTypeParser.java @@ -22,8 +22,7 @@ import java.lang.reflect.Constructor; -/** - */ + @LoadLevel(name = SqlParserType.SQL_PARSER_TYPE_DRUID) public class DruidDelegatingDbTypeParser implements DbTypeParser { private DbTypeParser dbTypeParserImpl; diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingSQLRecognizerFactory.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingSQLRecognizerFactory.java index 0e3ac04e437..41327d3fe94 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingSQLRecognizerFactory.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/DruidDelegatingSQLRecognizerFactory.java @@ -25,8 +25,7 @@ import java.lang.reflect.Constructor; import java.util.List; -/** - */ + @LoadLevel(name = SqlParserType.SQL_PARSER_TYPE_DRUID) public class DruidDelegatingSQLRecognizerFactory implements SQLRecognizerFactory { private volatile SQLRecognizerFactory recognizerFactoryImpl; diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/dm/BaseDmRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/dm/BaseDmRecognizer.java index 20089f3444f..a140c38026d 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/dm/BaseDmRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/dm/BaseDmRecognizer.java @@ -29,8 +29,7 @@ import java.util.List; import java.util.Objects; -/** - */ + public abstract class BaseDmRecognizer extends BaseRecognizer { /** diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/mysql/BaseMySQLRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/mysql/BaseMySQLRecognizer.java index 080d3713861..d7707b69081 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/mysql/BaseMySQLRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/mysql/BaseMySQLRecognizer.java @@ -30,8 +30,7 @@ import org.apache.seata.sqlparser.struct.Null; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public abstract class BaseMySQLRecognizer extends BaseRecognizer { /** diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/oracle/BaseOracleRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/oracle/BaseOracleRecognizer.java index e63c324eace..417566fd0ab 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/oracle/BaseOracleRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/oracle/BaseOracleRecognizer.java @@ -42,8 +42,7 @@ import org.apache.seata.sqlparser.struct.Null; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public abstract class BaseOracleRecognizer extends BaseRecognizer { /** diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/BasePostgresqlRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/BasePostgresqlRecognizer.java index dfd5dffc613..2e93eec5aeb 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/BasePostgresqlRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/BasePostgresqlRecognizer.java @@ -40,8 +40,7 @@ import java.util.List; import java.util.Objects; -/** - */ + public abstract class BasePostgresqlRecognizer extends BaseRecognizer { /** diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlDeleteRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlDeleteRecognizer.java index 2b1a9b65455..456152684e4 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlDeleteRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlDeleteRecognizer.java @@ -30,8 +30,7 @@ import java.util.ArrayList; import java.util.List; -/** - */ + public class PostgresqlDeleteRecognizer extends BasePostgresqlRecognizer implements SQLDeleteRecognizer { private final PGDeleteStatement ast; diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlInsertRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlInsertRecognizer.java index 5eb32bd31a9..404d6aea5c0 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlInsertRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlInsertRecognizer.java @@ -43,8 +43,7 @@ import org.apache.seata.sqlparser.struct.SqlMethodExpr; import org.apache.seata.sqlparser.struct.SqlSequenceExpr; -/** - */ + public class PostgresqlInsertRecognizer extends BasePostgresqlRecognizer implements SQLInsertRecognizer { private final PGInsertStatement ast; diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlSelectForUpdateRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlSelectForUpdateRecognizer.java index 0d89ddeb8e7..88a7f9af924 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlSelectForUpdateRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlSelectForUpdateRecognizer.java @@ -33,8 +33,7 @@ import java.util.ArrayList; import java.util.List; -/** - */ + public class PostgresqlSelectForUpdateRecognizer extends BasePostgresqlRecognizer implements SQLSelectRecognizer { private final SQLSelectStatement ast; diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlUpdateRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlUpdateRecognizer.java index 55411623562..877c00be6f5 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlUpdateRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/postgresql/PostgresqlUpdateRecognizer.java @@ -36,8 +36,7 @@ import org.apache.seata.sqlparser.SQLType; import org.apache.seata.sqlparser.SQLUpdateRecognizer; -/** - */ + public class PostgresqlUpdateRecognizer extends BasePostgresqlRecognizer implements SQLUpdateRecognizer { private PGUpdateStatement ast; diff --git a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/sqlserver/BaseSqlServerRecognizer.java b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/sqlserver/BaseSqlServerRecognizer.java index 1ed3d28be82..75bb50204f0 100644 --- a/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/sqlserver/BaseSqlServerRecognizer.java +++ b/sqlparser/seata-sqlparser-druid/src/main/java/org/apache/seata/sqlparser/druid/sqlserver/BaseSqlServerRecognizer.java @@ -37,8 +37,7 @@ import org.apache.seata.sqlparser.struct.Null; import org.apache.seata.sqlparser.util.JdbcConstants; -/** - */ + public abstract class BaseSqlServerRecognizer extends BaseRecognizer { /** * Instantiates a new sqlserver base recognizer. diff --git a/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserTest.java b/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserTest.java index 77048208c6c..32b12ca470b 100644 --- a/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserTest.java +++ b/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidDbTypeParserTest.java @@ -22,8 +22,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class DruidDbTypeParserTest { @Test public void testDruidDbTypeParserLoading() { diff --git a/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidIsolationTest.java b/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidIsolationTest.java index 3bdca511132..edd43e7cce3 100644 --- a/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidIsolationTest.java +++ b/sqlparser/seata-sqlparser-druid/src/test/java/org/apache/seata/sqlparser/druid/DruidIsolationTest.java @@ -27,8 +27,7 @@ import java.util.List; -/** - */ + public class DruidIsolationTest { private final static String TEST_SQL = "insert into t_table_1 values(?, ?)"; diff --git a/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/TccActionInterceptorHandler.java b/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/TccActionInterceptorHandler.java index acc3a3d422a..ffee8848e4f 100644 --- a/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/TccActionInterceptorHandler.java +++ b/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/TccActionInterceptorHandler.java @@ -41,8 +41,7 @@ import static org.apache.seata.common.ConfigurationKeys.TCC_ACTION_INTERCEPTOR_ORDER; import static org.apache.seata.common.Constants.BEAN_NAME_SPRING_FENCE_CONFIG; -/** - */ + public class TccActionInterceptorHandler extends AbstractProxyInvocationHandler { private static final int ORDER_NUM = ConfigurationFactory.getInstance().getInt(TCC_ACTION_INTERCEPTOR_ORDER, diff --git a/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParser.java b/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParser.java index ec46f9d8220..ffe88d6ad19 100644 --- a/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParser.java +++ b/tcc/src/main/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParser.java @@ -34,8 +34,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - */ + public class TccActionInterceptorParser implements InterfaceParser { private static final Logger LOGGER = LoggerFactory.getLogger(TccActionInterceptorParser.class); diff --git a/tcc/src/main/java/org/apache/seata/rm/tcc/json/FastJsonParser.java b/tcc/src/main/java/org/apache/seata/rm/tcc/json/FastJsonParser.java index 2870fe03973..6e9b2e64746 100644 --- a/tcc/src/main/java/org/apache/seata/rm/tcc/json/FastJsonParser.java +++ b/tcc/src/main/java/org/apache/seata/rm/tcc/json/FastJsonParser.java @@ -22,8 +22,7 @@ import org.apache.seata.common.loader.LoadLevel; import org.apache.seata.integration.tx.api.json.JsonParser; -/** - */ + @LoadLevel(name = Constants.FASTJSON_JSON_PARSER_NAME) public class FastJsonParser implements JsonParser { diff --git a/tcc/src/main/java/org/apache/seata/rm/tcc/json/GsonJsonParser.java b/tcc/src/main/java/org/apache/seata/rm/tcc/json/GsonJsonParser.java index 986b967859e..93b72cb2a1e 100644 --- a/tcc/src/main/java/org/apache/seata/rm/tcc/json/GsonJsonParser.java +++ b/tcc/src/main/java/org/apache/seata/rm/tcc/json/GsonJsonParser.java @@ -25,8 +25,7 @@ import org.apache.seata.common.loader.LoadLevel; import org.apache.seata.integration.tx.api.json.JsonParser; -/** - */ + @LoadLevel(name = Constants.GSON_JSON_PARSER_NAME) public class GsonJsonParser implements JsonParser { diff --git a/tcc/src/main/java/org/apache/seata/rm/tcc/json/JacksonJsonParser.java b/tcc/src/main/java/org/apache/seata/rm/tcc/json/JacksonJsonParser.java index f22f2f75de6..e0bc9a1536a 100644 --- a/tcc/src/main/java/org/apache/seata/rm/tcc/json/JacksonJsonParser.java +++ b/tcc/src/main/java/org/apache/seata/rm/tcc/json/JacksonJsonParser.java @@ -28,8 +28,7 @@ import org.apache.seata.common.loader.LoadLevel; import org.apache.seata.integration.tx.api.json.JsonParser; -/** - */ + @LoadLevel(name = Constants.JACKSON_JSON_PARSER_NAME) public class JacksonJsonParser implements JsonParser { diff --git a/tcc/src/main/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParser.java b/tcc/src/main/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParser.java index 57a54ee4603..d95e54e9d36 100644 --- a/tcc/src/main/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParser.java +++ b/tcc/src/main/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParser.java @@ -32,8 +32,7 @@ import org.apache.seata.rm.tcc.api.BusinessActionContext; import org.apache.seata.rm.tcc.api.BusinessActionContextParameter; import org.apache.seata.rm.tcc.api.TwoPhaseBusinessAction; -/** - */ + public class TccRegisterResourceParser implements RegisterResourceParser { @Override diff --git a/tcc/src/test/java/org/apache/seata/rm/tcc/NormalTccActionImpl.java b/tcc/src/test/java/org/apache/seata/rm/tcc/NormalTccActionImpl.java index d04eac43f4a..dd55a1c0785 100644 --- a/tcc/src/test/java/org/apache/seata/rm/tcc/NormalTccActionImpl.java +++ b/tcc/src/test/java/org/apache/seata/rm/tcc/NormalTccActionImpl.java @@ -21,8 +21,7 @@ import org.apache.seata.rm.tcc.api.BusinessActionContext; -/** - */ + public class NormalTccActionImpl implements NormalTccAction { @Override diff --git a/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/ProxyUtilsTccTest.java b/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/ProxyUtilsTccTest.java index 0d3c94c28ba..48416d90e9c 100644 --- a/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/ProxyUtilsTccTest.java +++ b/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/ProxyUtilsTccTest.java @@ -35,8 +35,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + public class ProxyUtilsTccTest { private final String DEFAULT_XID = "default_xid"; diff --git a/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParserTest.java b/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParserTest.java index 42b1eb71de7..79fda999831 100644 --- a/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParserTest.java +++ b/tcc/src/test/java/org/apache/seata/rm/tcc/interceptor/parser/TccActionInterceptorParserTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class TccActionInterceptorParserTest { @Test diff --git a/tcc/src/test/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParserTest.java b/tcc/src/test/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParserTest.java index cc36a7418e3..a11e12f8b1f 100644 --- a/tcc/src/test/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParserTest.java +++ b/tcc/src/test/java/org/apache/seata/rm/tcc/resource/parser/TccRegisterResourceParserTest.java @@ -23,8 +23,7 @@ import java.lang.reflect.Method; -/** - */ + class TccRegisterResourceParserTest { TccRegisterResourceParser tccRegisterResourceParser = new TccRegisterResourceParser(); diff --git a/test/src/test/java/org/apache/seata/saga/engine/mock/DemoException.java b/test/src/test/java/org/apache/seata/saga/engine/mock/DemoException.java index 4acd24ae2c8..81f0a8ad8a1 100644 --- a/test/src/test/java/org/apache/seata/saga/engine/mock/DemoException.java +++ b/test/src/test/java/org/apache/seata/saga/engine/mock/DemoException.java @@ -16,9 +16,7 @@ */ package org.apache.seata.saga.engine.mock; -/** - * - */ + public class DemoException extends RuntimeException { public DemoException() { diff --git a/test/src/test/java/org/apache/seata/saga/engine/mock/MockGlobalTransaction.java b/test/src/test/java/org/apache/seata/saga/engine/mock/MockGlobalTransaction.java index 1dd697903f4..56c1e5ddc93 100644 --- a/test/src/test/java/org/apache/seata/saga/engine/mock/MockGlobalTransaction.java +++ b/test/src/test/java/org/apache/seata/saga/engine/mock/MockGlobalTransaction.java @@ -24,9 +24,7 @@ import org.apache.seata.tm.api.GlobalTransactionRole; import org.apache.seata.tm.api.transaction.SuspendedResourcesHolder; -/** - * - */ + public class MockGlobalTransaction implements GlobalTransaction { private String xid; diff --git a/test/src/test/java/org/apache/seata/saga/engine/mock/MockSagaTransactionTemplate.java b/test/src/test/java/org/apache/seata/saga/engine/mock/MockSagaTransactionTemplate.java index ce56b10f1d9..6cf6cd693f9 100644 --- a/test/src/test/java/org/apache/seata/saga/engine/mock/MockSagaTransactionTemplate.java +++ b/test/src/test/java/org/apache/seata/saga/engine/mock/MockSagaTransactionTemplate.java @@ -25,9 +25,7 @@ import org.apache.seata.tm.api.TransactionalExecutor.ExecutionException; import org.apache.seata.tm.api.transaction.TransactionInfo; -/** - * - */ + public class MockSagaTransactionTemplate implements SagaTransactionalTemplate { @Override diff --git a/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateHandlerInterceptor.java b/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateHandlerInterceptor.java index b058f770b62..63f9bec1de1 100644 --- a/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateHandlerInterceptor.java +++ b/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateHandlerInterceptor.java @@ -23,9 +23,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - * - */ + public class MockStateHandlerInterceptor implements StateHandlerInterceptor { private static final Logger LOGGER = LoggerFactory.getLogger(MockStateHandlerInterceptor.class); diff --git a/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateRouterInterceptor.java b/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateRouterInterceptor.java index c65697765ae..506bef87a37 100644 --- a/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateRouterInterceptor.java +++ b/test/src/test/java/org/apache/seata/saga/engine/mock/MockStateRouterInterceptor.java @@ -25,9 +25,7 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; -/** - * - */ + public class MockStateRouterInterceptor implements StateRouterInterceptor { private static final Logger LOGGER = LoggerFactory.getLogger(MockStateRouterInterceptor.class); diff --git a/tm/src/main/java/org/apache/seata/tm/api/FailureHandlerHolder.java b/tm/src/main/java/org/apache/seata/tm/api/FailureHandlerHolder.java index 01fcdff1546..b7251ad1d81 100644 --- a/tm/src/main/java/org/apache/seata/tm/api/FailureHandlerHolder.java +++ b/tm/src/main/java/org/apache/seata/tm/api/FailureHandlerHolder.java @@ -16,8 +16,7 @@ */ package org.apache.seata.tm.api; -/** - */ + public class FailureHandlerHolder { private static FailureHandler FAILURE_HANDLER_HOLDER = new DefaultFailureHandlerImpl(); diff --git a/tm/src/main/java/org/apache/seata/tm/api/transaction/NoRollbackRule.java b/tm/src/main/java/org/apache/seata/tm/api/transaction/NoRollbackRule.java index e716adf0d31..1b2a9a126a8 100644 --- a/tm/src/main/java/org/apache/seata/tm/api/transaction/NoRollbackRule.java +++ b/tm/src/main/java/org/apache/seata/tm/api/transaction/NoRollbackRule.java @@ -17,8 +17,7 @@ package org.apache.seata.tm.api.transaction; -/** - */ + public class NoRollbackRule extends RollbackRule { public static final NoRollbackRule DEFAULT_NO_ROLLBACK_RULE = new NoRollbackRule(Throwable.class); diff --git a/tm/src/main/java/org/apache/seata/tm/api/transaction/RollbackRule.java b/tm/src/main/java/org/apache/seata/tm/api/transaction/RollbackRule.java index 60e57cb97b3..28d284d65b4 100644 --- a/tm/src/main/java/org/apache/seata/tm/api/transaction/RollbackRule.java +++ b/tm/src/main/java/org/apache/seata/tm/api/transaction/RollbackRule.java @@ -20,8 +20,7 @@ import java.io.Serializable; -/** - */ + public class RollbackRule implements Serializable { diff --git a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHook.java b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHook.java index c23605e9ec4..a9a95e19813 100644 --- a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHook.java +++ b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHook.java @@ -16,8 +16,7 @@ */ package org.apache.seata.tm.api.transaction; -/** - */ + public interface TransactionHook { /** diff --git a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookAdapter.java b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookAdapter.java index 6ec0a644cf9..812a9ba4c4b 100644 --- a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookAdapter.java +++ b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookAdapter.java @@ -16,8 +16,7 @@ */ package org.apache.seata.tm.api.transaction; -/** - */ + public class TransactionHookAdapter implements TransactionHook { @Override diff --git a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookManager.java b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookManager.java index 565fa1e2ab0..14a6ba825d8 100644 --- a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookManager.java +++ b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionHookManager.java @@ -20,8 +20,7 @@ import java.util.Collections; import java.util.List; -/** - */ + public final class TransactionHookManager { private TransactionHookManager() { diff --git a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionInfo.java b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionInfo.java index 98531fbed0c..8f2fd3daa7d 100644 --- a/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionInfo.java +++ b/tm/src/main/java/org/apache/seata/tm/api/transaction/TransactionInfo.java @@ -22,8 +22,7 @@ import org.apache.seata.common.LockStrategyMode; import org.apache.seata.common.util.CollectionUtils; -/** - */ + public final class TransactionInfo implements Serializable { private int timeOut; diff --git a/tm/src/test/java/org/apache/seata/tm/TransactionManagerHolderTest.java b/tm/src/test/java/org/apache/seata/tm/TransactionManagerHolderTest.java index 084aa8011b9..2b673e1dac8 100644 --- a/tm/src/test/java/org/apache/seata/tm/TransactionManagerHolderTest.java +++ b/tm/src/test/java/org/apache/seata/tm/TransactionManagerHolderTest.java @@ -21,8 +21,7 @@ import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; -/** - */ + class TransactionManagerHolderTest { diff --git a/tm/src/test/java/org/apache/seata/tm/api/DefaultFailureHandlerImplTest.java b/tm/src/test/java/org/apache/seata/tm/api/DefaultFailureHandlerImplTest.java index 1b57a5cd18f..aff5518470b 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/DefaultFailureHandlerImplTest.java +++ b/tm/src/test/java/org/apache/seata/tm/api/DefaultFailureHandlerImplTest.java @@ -32,8 +32,7 @@ import java.lang.reflect.Field; -/** - */ + class DefaultFailureHandlerImplTest { private static final Logger LOGGER = LoggerFactory.getLogger(DefaultFailureHandlerImplTest.class); diff --git a/tm/src/test/java/org/apache/seata/tm/api/DefaultGlobalTransactionTest.java b/tm/src/test/java/org/apache/seata/tm/api/DefaultGlobalTransactionTest.java index fa6c5fd6db7..35af8625f69 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/DefaultGlobalTransactionTest.java +++ b/tm/src/test/java/org/apache/seata/tm/api/DefaultGlobalTransactionTest.java @@ -27,8 +27,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -/** - */ + class DefaultGlobalTransactionTest { private static final String DEFAULT_XID = "1234567890"; diff --git a/tm/src/test/java/org/apache/seata/tm/api/GlobalTransactionContextTest.java b/tm/src/test/java/org/apache/seata/tm/api/GlobalTransactionContextTest.java index 41a4fa693b3..c5bef02966a 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/GlobalTransactionContextTest.java +++ b/tm/src/test/java/org/apache/seata/tm/api/GlobalTransactionContextTest.java @@ -25,8 +25,7 @@ import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; -/** - */ + class GlobalTransactionContextTest { private static final String DEFAULT_XID = "1234567890"; diff --git a/tm/src/test/java/org/apache/seata/tm/api/TransactionTemplateTest.java b/tm/src/test/java/org/apache/seata/tm/api/TransactionTemplateTest.java index c359043380d..92065fb0c02 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/TransactionTemplateTest.java +++ b/tm/src/test/java/org/apache/seata/tm/api/TransactionTemplateTest.java @@ -38,8 +38,7 @@ import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; -/** - */ + public class TransactionTemplateTest { private static final String DEFAULT_XID = "123456789"; diff --git a/tm/src/test/java/org/apache/seata/tm/api/transaction/MyRuntimeException.java b/tm/src/test/java/org/apache/seata/tm/api/transaction/MyRuntimeException.java index 7bd52544197..8fb6de34299 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/transaction/MyRuntimeException.java +++ b/tm/src/test/java/org/apache/seata/tm/api/transaction/MyRuntimeException.java @@ -16,8 +16,7 @@ */ package org.apache.seata.tm.api.transaction; -/** - */ + public class MyRuntimeException extends RuntimeException { public MyRuntimeException(String msg) { diff --git a/tm/src/test/java/org/apache/seata/tm/api/transaction/RollbackRuleTest.java b/tm/src/test/java/org/apache/seata/tm/api/transaction/RollbackRuleTest.java index 9721f3aa41e..070ae4a7e19 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/transaction/RollbackRuleTest.java +++ b/tm/src/test/java/org/apache/seata/tm/api/transaction/RollbackRuleTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class RollbackRuleTest { @Test diff --git a/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionHookManagerTest.java b/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionHookManagerTest.java index 67a1833b155..f300f2e3361 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionHookManagerTest.java +++ b/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionHookManagerTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class TransactionHookManagerTest { @AfterEach diff --git a/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionInfoTest.java b/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionInfoTest.java index 395389f20b8..d1ed6125bd8 100644 --- a/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionInfoTest.java +++ b/tm/src/test/java/org/apache/seata/tm/api/transaction/TransactionInfoTest.java @@ -24,8 +24,7 @@ import static org.assertj.core.api.Assertions.assertThat; -/** - */ + public class TransactionInfoTest { private static final String IO_EXCEPTION_SHORT_NAME = "IOException";