You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ch...@apache.org on 2024/06/13 11:21:58 UTC

(shardingsphere) branch master updated: Refactor ShardingSphereDataSource (#31690)

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

chengzhang 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 bf6e8a53baf Refactor ShardingSphereDataSource (#31690)
bf6e8a53baf is described below

commit bf6e8a53bafc2f9e5c2ae725016fd60504210d0b
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Thu Jun 13 19:21:52 2024 +0800

    Refactor ShardingSphereDataSource (#31690)
---
 .../driver/jdbc/core/datasource/ShardingSphereDataSource.java      | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/datasource/ShardingSphereDataSource.java b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/datasource/ShardingSphereDataSource.java
index 7d093fc7568..83b49b64916 100644
--- a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/datasource/ShardingSphereDataSource.java
+++ b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/datasource/ShardingSphereDataSource.java
@@ -80,12 +80,7 @@ public final class ShardingSphereDataSource extends AbstractDataSourceAdapter im
     
     private void contextManagerInitializedCallback() {
         for (ContextManagerLifecycleListener each : ShardingSphereServiceLoader.getServiceInstances(ContextManagerLifecycleListener.class)) {
-            try {
-                each.onInitialized(databaseName, contextManager);
-                // CHECKSTYLE:OFF
-            } catch (final RuntimeException ignored) {
-                // CHECKSTYLE:ON
-            }
+            each.onInitialized(databaseName, contextManager);
         }
     }