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 3fd7a70  Modify notes of DataNodeContainedRule's method 
findActualTableByCatalog (#15082)
3fd7a70 is described below

commit 3fd7a70d48d2050ff126427cbcf7fb5d5829490c
Author: liguoping <[email protected]>
AuthorDate: Wed Jan 26 19:02:15 2022 +0800

    Modify notes of DataNodeContainedRule's method findActualTableByCatalog 
(#15082)
---
 .../infra/rule/identifier/type/DataNodeContainedRule.java              | 2 +-
 .../apache/shardingsphere/singletable/rule/SingleTableRuleTest.java    | 3 +--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/rule/identifier/type/DataNodeContainedRule.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/rule/identifier/type/DataNodeContainedRule.java
index 6ff0d86..e5fa7d8 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/rule/identifier/type/DataNodeContainedRule.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/rule/identifier/type/DataNodeContainedRule.java
@@ -68,7 +68,7 @@ public interface DataNodeContainedRule extends 
ShardingSphereRule {
     Optional<String> findLogicTableByActualTable(String actualTable);
     
     /**
-     * Find actual table name via catelog.
+     * Find actual table name via catalog.
      * 
      * @param catalog catalog
      * @param logicTable logic table name
diff --git 
a/shardingsphere-kernel/shardingsphere-single-table/shardingsphere-single-table-core/src/test/java/org/apache/shardingsphere/singletable/rule/SingleTableRuleTest.java
 
b/shardingsphere-kernel/shardingsphere-single-table/shardingsphere-single-table-core/src/test/java/org/apache/shardingsphere/singletable/rule/SingleTableRuleTest.java
index ce6dd1f..8470cf4 100644
--- 
a/shardingsphere-kernel/shardingsphere-single-table/shardingsphere-single-table-core/src/test/java/org/apache/shardingsphere/singletable/rule/SingleTableRuleTest.java
+++ 
b/shardingsphere-kernel/shardingsphere-single-table/shardingsphere-single-table-core/src/test/java/org/apache/shardingsphere/singletable/rule/SingleTableRuleTest.java
@@ -249,8 +249,7 @@ public final class SingleTableRuleTest {
         DataNodeContainedRule dataNodeContainedRule = 
mock(DataNodeContainedRule.class);
         SingleTableRule singleTableRule = new SingleTableRule(new 
SingleTableRuleConfiguration(), mock(DatabaseType.class), dataSourceMap, 
                 Collections.singletonList(dataNodeContainedRule), new 
ConfigurationProperties(new Properties()));
-        Collection<String> tables = new LinkedList<>();
-        assertFalse(singleTableRule.isNeedAccumulate(tables));
+        assertFalse(singleTableRule.isNeedAccumulate(Collections.emptyList()));
     }
     
     @Test

Reply via email to