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 1b92538  Fix the wrong import of com.google.common.base.Function 
(#11463)
1b92538 is described below

commit 1b925389573f67a65d7229ef445593bfc7d312e8
Author: Hugh Gao <[email protected]>
AuthorDate: Sat Jul 24 17:51:26 2021 +0800

    Fix the wrong import of com.google.common.base.Function (#11463)
---
 .../java/org/apache/shardingsphere/sharding/rule/ShardingRule.java     | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
 
b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
index f95c778..d3658c1 100644
--- 
a/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
+++ 
b/shardingsphere-features/shardingsphere-sharding/shardingsphere-sharding-core/src/main/java/org/apache/shardingsphere/sharding/rule/ShardingRule.java
@@ -17,7 +17,6 @@
 
 package org.apache.shardingsphere.sharding.rule;
 
-import com.google.common.base.Function;
 import com.google.common.base.Preconditions;
 import com.google.common.base.Splitter;
 import com.google.common.base.Strings;
@@ -491,7 +490,7 @@ public final class ShardingRule implements FeatureRule, 
SchemaRule, DataNodeCont
     
     @Override
     public Collection<String> getTables() {
-        return tableRules.stream().map((Function<TableRule, String>) 
TableRule::getLogicTable).collect(Collectors.toList());
+        return 
tableRules.stream().map(TableRule::getLogicTable).collect(Collectors.toList());
     }
     
     @Override

Reply via email to