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

duanzhengqiang 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 a019ffd  Minor refactor for code style (#13403)
a019ffd is described below

commit a019ffd41a3e92303f604c8b706033d070618fd7
Author: Haoran Meng <[email protected]>
AuthorDate: Tue Nov 2 14:44:17 2021 +0800

    Minor refactor for code style (#13403)
---
 .../infra/config/datasource/killer/DataSourceKiller.java       | 10 ++++------
 .../config/datasource/killer/impl/HikariDataSourceKiller.java  |  9 +++------
 2 files changed, 7 insertions(+), 12 deletions(-)

diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/DataSourceKiller.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/DataSourceKiller.java
index 463d352..f4cf4d2 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/DataSourceKiller.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/DataSourceKiller.java
@@ -17,12 +17,10 @@
 
 package org.apache.shardingsphere.infra.config.datasource.killer;
 
-import java.sql.SQLException;
-
-import javax.sql.DataSource;
-
 import org.apache.shardingsphere.spi.required.RequiredSPI;
 import org.apache.shardingsphere.spi.typed.TypedSPI;
+import javax.sql.DataSource;
+import java.sql.SQLException;
 
 /**
  * Data source killer.
@@ -30,10 +28,10 @@ import org.apache.shardingsphere.spi.typed.TypedSPI;
 public interface DataSourceKiller extends TypedSPI, RequiredSPI {
     
     /**
-     * Gracefully kill the dataSource.
+     * Gracefully kill the data source.
      * 
      * @param dataSource data source
-     * @throws SQLException sql exception
+     * @throws SQLException SQL exception
      */
     void closeDataSource(DataSource dataSource) throws SQLException;
 }
diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/impl/HikariDataSourceKiller.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/impl/HikariDataSourceKiller.java
index 1a574a0..5e8a156 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/impl/HikariDataSourceKiller.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/killer/impl/HikariDataSourceKiller.java
@@ -17,15 +17,12 @@
 
 package org.apache.shardingsphere.infra.config.datasource.killer.impl;
 
+import com.zaxxer.hikari.HikariDataSource;
+import 
org.apache.shardingsphere.infra.config.datasource.killer.DataSourceKiller;
+import javax.sql.DataSource;
 import java.util.concurrent.ExecutorService;
 import java.util.concurrent.Executors;
 
-import javax.sql.DataSource;
-
-import 
org.apache.shardingsphere.infra.config.datasource.killer.DataSourceKiller;
-
-import com.zaxxer.hikari.HikariDataSource;
-
 /**
  * Hikari data source killer.
  */

Reply via email to