This is an automated email from the ASF dual-hosted git repository.

totalo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 5046ba6aca2 Fix sonar issue (#28344)
5046ba6aca2 is described below

commit 5046ba6aca2d1488acea8fef27b23be9656eb485
Author: Liang Zhang <zhangli...@apache.org>
AuthorDate: Sun Sep 3 01:50:15 2023 +0800

    Fix sonar issue (#28344)
---
 .../infra/exception/dialect/SQLExceptionTransformEngineTest.java      | 2 +-
 .../e2e/driver/statement/ReadwriteSplittingPreparedStatementTest.java | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/infra/exception/dialect/core/src/test/java/org/apache/shardingsphere/infra/exception/dialect/SQLExceptionTransformEngineTest.java
 
b/infra/exception/dialect/core/src/test/java/org/apache/shardingsphere/infra/exception/dialect/SQLExceptionTransformEngineTest.java
index 05f1b893f47..841379c7f42 100644
--- 
a/infra/exception/dialect/core/src/test/java/org/apache/shardingsphere/infra/exception/dialect/SQLExceptionTransformEngineTest.java
+++ 
b/infra/exception/dialect/core/src/test/java/org/apache/shardingsphere/infra/exception/dialect/SQLExceptionTransformEngineTest.java
@@ -32,7 +32,7 @@ import static org.hamcrest.MatcherAssert.assertThat;
 import static org.mockito.Mockito.mock;
 import static org.mockito.Mockito.when;
 
-public class SQLExceptionTransformEngineTest {
+class SQLExceptionTransformEngineTest {
     
     private final DatabaseType databaseType = 
TypedSPILoader.getService(DatabaseType.class, "FIXTURE");
     
diff --git 
a/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/ReadwriteSplittingPreparedStatementTest.java
 
b/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/ReadwriteSplittingPreparedStatementTest.java
index c8388014f0e..d1bff293b10 100644
--- 
a/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/ReadwriteSplittingPreparedStatementTest.java
+++ 
b/test/e2e/driver/src/test/java/org/apache/shardingsphere/test/e2e/driver/statement/ReadwriteSplittingPreparedStatementTest.java
@@ -117,7 +117,7 @@ class ReadwriteSplittingPreparedStatementTest extends 
AbstractReadwriteSplitting
     }
     
     @Test
-    public void assertGetAutoGeneratedKeysAfterExecuteBatch() throws 
SQLException {
+    void assertGetAutoGeneratedKeysAfterExecuteBatch() throws SQLException {
         try (
                 Connection connection = 
getReadwriteSplittingDataSource().getConnection();
                 PreparedStatement preparedStatement = 
connection.prepareStatement("INSERT INTO t_config(status) VALUES(?);", 
Statement.RETURN_GENERATED_KEYS)) {
@@ -144,7 +144,7 @@ class ReadwriteSplittingPreparedStatementTest extends 
AbstractReadwriteSplitting
     }
     
     @Test
-    public void assertGetAutoGeneratedKeysAfterExecuteBatchMultiValues() 
throws SQLException {
+    void assertGetAutoGeneratedKeysAfterExecuteBatchMultiValues() throws 
SQLException {
         try (
                 Connection connection = 
getReadwriteSplittingDataSource().getConnection();
                 PreparedStatement preparedStatement = 
connection.prepareStatement("INSERT INTO t_config(status) VALUES(?),(?);", 
Statement.RETURN_GENERATED_KEYS)) {

Reply via email to