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

menghaoran 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 37c98106232 Remove ShardingSphereRuleMetaData.configurations (#18576)
37c98106232 is described below

commit 37c9810623297dcb36ec441172e24e0858dcde00
Author: Liang Zhang <[email protected]>
AuthorDate: Fri Jun 24 23:53:33 2022 +0800

    Remove ShardingSphereRuleMetaData.configurations (#18576)
---
 .../metadata/database/rule/ShardingSphereRuleMetaData.java   | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/database/rule/ShardingSphereRuleMetaData.java
 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/database/rule/ShardingSphereRuleMetaData.java
index 22be8a0af1e..5e6f7ed0a4e 100644
--- 
a/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/database/rule/ShardingSphereRuleMetaData.java
+++ 
b/shardingsphere-infra/shardingsphere-infra-common/src/main/java/org/apache/shardingsphere/infra/metadata/database/rule/ShardingSphereRuleMetaData.java
@@ -37,11 +37,17 @@ public final class ShardingSphereRuleMetaData {
     
     private final Collection<ShardingSphereRule> rules;
     
-    private final Collection<RuleConfiguration> configurations;
-    
     public ShardingSphereRuleMetaData(final Collection<ShardingSphereRule> 
rules) {
         this.rules = new CopyOnWriteArrayList<>(rules);
-        configurations = 
rules.stream().map(ShardingSphereRule::getConfiguration).collect(Collectors.toList());
+    }
+    
+    /**
+     * Get rule configurations.
+     * 
+     * @return got rule configurations
+     */
+    public Collection<RuleConfiguration> getConfigurations() {
+        return 
rules.stream().map(ShardingSphereRule::getConfiguration).collect(Collectors.toList());
     }
     
     /**

Reply via email to