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

sunnianjun 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 0a8029e98dd For codes format (#32431)
0a8029e98dd is described below

commit 0a8029e98dd8f99549c90e0378b8c725dd79a137
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Aug 8 19:29:11 2024 +0800

    For codes format (#32431)
---
 .../handler/provider/ShadowRuleConfigurationToDistSQLConverter.java  | 5 +++--
 .../sqlfederation/executor/utils/StatisticsAssembleUtils.java        | 3 ++-
 2 files changed, 5 insertions(+), 3 deletions(-)

diff --git 
a/features/shadow/distsql/handler/src/main/java/org/apache/shardingsphere/shadow/distsql/handler/provider/ShadowRuleConfigurationToDistSQLConverter.java
 
b/features/shadow/distsql/handler/src/main/java/org/apache/shardingsphere/shadow/distsql/handler/provider/ShadowRuleConfigurationToDistSQLConverter.java
index ae937484e9a..af0e35d8a23 100644
--- 
a/features/shadow/distsql/handler/src/main/java/org/apache/shardingsphere/shadow/distsql/handler/provider/ShadowRuleConfigurationToDistSQLConverter.java
+++ 
b/features/shadow/distsql/handler/src/main/java/org/apache/shardingsphere/shadow/distsql/handler/provider/ShadowRuleConfigurationToDistSQLConverter.java
@@ -29,6 +29,7 @@ import 
org.apache.shardingsphere.shadow.distsql.handler.constant.ShadowDistSQLCo
 import java.util.Collection;
 import java.util.Iterator;
 import java.util.Map;
+import java.util.Map.Entry;
 
 /**
  * Shadow rule configuration to DistSQL converter.
@@ -57,9 +58,9 @@ public final class ShadowRuleConfigurationToDistSQLConverter 
implements RuleConf
     
     private String getShadowTables(final String shadowRuleName, final 
Map<String, ShadowTableConfiguration> ruleConfig, final Map<String, 
AlgorithmConfiguration> algorithmConfigs) {
         StringBuilder result = new StringBuilder();
-        Iterator<Map.Entry<String, ShadowTableConfiguration>> iterator = 
ruleConfig.entrySet().iterator();
+        Iterator<Entry<String, ShadowTableConfiguration>> iterator = 
ruleConfig.entrySet().iterator();
         while (iterator.hasNext()) {
-            Map.Entry<String, ShadowTableConfiguration> shadowTableConfig = 
iterator.next();
+            Entry<String, ShadowTableConfiguration> shadowTableConfig = 
iterator.next();
             if 
(shadowTableConfig.getValue().getDataSourceNames().contains(shadowRuleName)) {
                 String shadowTableTypes = 
getShadowTableTypes(shadowTableConfig.getValue().getShadowAlgorithmNames(), 
algorithmConfigs);
                 
result.append(String.format(ShadowDistSQLConstants.SHADOW_TABLE, 
shadowTableConfig.getKey(), shadowTableTypes));
diff --git 
a/kernel/sql-federation/executor/src/main/java/org/apache/shardingsphere/sqlfederation/executor/utils/StatisticsAssembleUtils.java
 
b/kernel/sql-federation/executor/src/main/java/org/apache/shardingsphere/sqlfederation/executor/utils/StatisticsAssembleUtils.java
index b712fa9a8a4..b7e67c74187 100644
--- 
a/kernel/sql-federation/executor/src/main/java/org/apache/shardingsphere/sqlfederation/executor/utils/StatisticsAssembleUtils.java
+++ 
b/kernel/sql-federation/executor/src/main/java/org/apache/shardingsphere/sqlfederation/executor/utils/StatisticsAssembleUtils.java
@@ -32,6 +32,7 @@ import 
org.apache.shardingsphere.sqlfederation.executor.constant.EnumerableConst
 import java.util.Arrays;
 import java.util.Collection;
 import java.util.Map;
+import java.util.Map.Entry;
 
 /**
  * Statistics assemble utils.
@@ -71,7 +72,7 @@ public final class StatisticsAssembleUtils {
     }
     
     private static void assembleOpenGaussTableData(final 
ShardingSphereTableData tableData, final Map<String, ShardingSphereSchema> 
schemas) {
-        for (Map.Entry<String, ShardingSphereSchema> entry : 
schemas.entrySet()) {
+        for (Entry<String, ShardingSphereSchema> entry : schemas.entrySet()) {
             for (String each : entry.getValue().getAllTableNames()) {
                 Object[] rows = new Object[10];
                 rows[0] = entry.getKey();

Reply via email to