You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2021/12/31 02:52:13 UTC
[shardingsphere] branch master updated: Fixed getJdbcUrl() methon repeat call getGetterMethodName() method. (#14452)
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 e16330e Fixed getJdbcUrl() methon repeat call getGetterMethodName() method. (#14452)
e16330e is described below
commit e16330e62ee89261acdb82abba916dff9d5287e7
Author: zhaojinchao <33...@users.noreply.github.com>
AuthorDate: Fri Dec 31 10:50:44 2021 +0800
Fixed getJdbcUrl() methon repeat call getGetterMethodName() method. (#14452)
* Fixed ut
* update
---
.../datasource/pool/creator/impl/DataSourcePropertiesHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/pool/creator/impl/DataSourcePropertiesHandler.java b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/pool/creator/impl/DataSourcePropertiesHandler.java
index 4a59d55..7545574 100644
--- a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/pool/creator/impl/DataSourcePropertiesHandler.java
+++ b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/config/datasource/pool/creator/impl/DataSourcePropertiesHandler.java
@@ -69,7 +69,7 @@ public final class DataSourcePropertiesHandler {
@SneakyThrows(ReflectiveOperationException.class)
private String getJdbcUrl(final String jdbcUrlFieldName) {
- return (String) dataSource.getClass().getMethod(getGetterMethodName(getGetterMethodName(jdbcUrlFieldName))).invoke(dataSource);
+ return (String) dataSource.getClass().getMethod(getGetterMethodName(jdbcUrlFieldName)).invoke(dataSource);
}
private String getGetterMethodName(final String fieldName) {