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

zhangliang 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 730571e  fix exception checkstyle (#7535)
730571e is described below

commit 730571ef49fe2beae5a312cfcd8ebbdc332c59f6
Author: kimmking <[email protected]>
AuthorDate: Mon Sep 21 19:17:14 2020 +0800

    fix exception checkstyle (#7535)
---
 .../shardingsphere/infra/context/schema/ShardingSphereSchema.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/schema/ShardingSphereSchema.java
 
b/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/schema/ShardingSphereSchema.java
index 424434b..badfe74 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/schema/ShardingSphereSchema.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-context/src/main/java/org/apache/shardingsphere/infra/context/schema/ShardingSphereSchema.java
@@ -58,7 +58,9 @@ public final class ShardingSphereSchema {
         if (dataSource instanceof AutoCloseable) {
             try {
                 ((AutoCloseable) dataSource).close();
-            } catch (Exception e) {
+            // CHECKSTYLE:OFF
+            } catch (final Exception e) {
+            // CHECKSTYLE:ON
                 throw new SQLException(e);
             }
         }

Reply via email to