You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2022/08/18 08:06:50 UTC

[shardingsphere] branch master updated: Revise #20252 fix checkstyle (#20267)

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

panjuan 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 3c3cf48518c Revise #20252 fix checkstyle (#20267)
3c3cf48518c is described below

commit 3c3cf48518cec4d1a5bf191d83f3c23e16f70316
Author: 吴伟杰 <wu...@apache.org>
AuthorDate: Thu Aug 18 16:06:43 2022 +0800

    Revise #20252 fix checkstyle (#20267)
---
 .../transaction/cases/classictransfer/ClassicTransferTestCase.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-transaction/src/test/java/org/apache/shardingsphere/integration/transaction/cases/classictransfer/ClassicTransferTestCase.java b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-transaction/src/test/java/org/apache/shardingsphere/integration/transaction/cases/classictransfer/ClassicTransferTestCase.java
index 4850cf181b7..dca90daccf9 100644
--- a/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-transaction/src/test/java/org/apache/shardingsphere/integration/transaction/cases/classictransfer/ClassicTransferTestCase.java
+++ b/shardingsphere-test/shardingsphere-integration-test/shardingsphere-integration-test-transaction/src/test/java/org/apache/shardingsphere/integration/transaction/cases/classictransfer/ClassicTransferTestCase.java
@@ -78,7 +78,7 @@ public final class ClassicTransferTestCase extends BaseTransactionTestCase {
             ResultSet resultSet = statement.executeQuery("select sum(balance) as a from account where transaction_id in (1, 2)");
             if (resultSet.next()) {
                 result = resultSet.getInt(1);
-            } 
+            }
             connection.commit();
         }
         return result;
@@ -93,7 +93,7 @@ public final class ClassicTransferTestCase extends BaseTransactionTestCase {
         public void run() {
             Statement statement1 = null;
             Statement statement2 = null;
-            try (Connection connection = dataSource.getConnection();){
+            try (Connection connection = dataSource.getConnection()) {
                 connection.setAutoCommit(false);
                 statement1 = connection.createStatement();
                 statement1.execute("update account set balance=balance-1 where transaction_id=2;");