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 2026/08/08 13:25:12 UTC

(shardingsphere) branch master updated: Fix codes format (#39382)

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

terrymanu 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 d26c87dc8ca Fix codes format (#39382)
d26c87dc8ca is described below

commit d26c87dc8cac45d910264dba727d54eb105d8532
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sat Aug 8 21:25:06 2026 +0800

    Fix codes format (#39382)
---
 .../infra/metadata/database/ShardingSphereDatabase.java             | 3 +--
 .../infra/metadata/database/ShardingSphereDatabaseFactory.java      | 3 +--
 .../infra/metadata/database/ShardingSphereDatabasesFactory.java     | 6 ++----
 .../rule/builder/fixture/ToggleFixtureDatabaseRuleBuilder.java      | 3 +--
 4 files changed, 5 insertions(+), 10 deletions(-)

diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabase.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabase.java
index f71a4894033..3e56a5b42d3 100644
--- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabase.java
+++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabase.java
@@ -84,8 +84,7 @@ public final class ShardingSphereDatabase {
     }
     
     private ShardingSphereDatabase(final String name, final DatabaseType protocolType, final ResourceMetaData resourceMetaData,
-                                   final RuleMetaData ruleMetaData, final Collection<ShardingSphereSchema> schemas,
-                                   final DatabaseIdentifierContext identifierContext) {
+                                   final RuleMetaData ruleMetaData, final Collection<ShardingSphereSchema> schemas, final DatabaseIdentifierContext identifierContext) {
         this.name = name;
         this.protocolType = protocolType;
         this.resourceMetaData = resourceMetaData;
diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabaseFactory.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabaseFactory.java
index 23bfc2fb9da..436dc94433e 100644
--- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabaseFactory.java
+++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabaseFactory.java
@@ -113,8 +113,7 @@ public final class ShardingSphereDatabaseFactory {
      * @return created database
      */
     public static ShardingSphereDatabase create(final String name, final DatabaseType protocolType, final DatabaseConfiguration databaseConfig,
-                                                final ConfigurationProperties props, final ComputeNodeInstanceContext computeNodeInstanceContext,
-                                                final Collection<ShardingSphereSchema> schemas) {
+                                                final ConfigurationProperties props, final ComputeNodeInstanceContext computeNodeInstanceContext, final Collection<ShardingSphereSchema> schemas) {
         ResourceMetaData resourceMetaData = new ResourceMetaData(databaseConfig.getDataSources(), databaseConfig.getStorageUnits());
         Collection<ShardingSphereRule> rules = DatabaseRulesBuilder.build(name, protocolType, databaseConfig, computeNodeInstanceContext, resourceMetaData);
         return new ShardingSphereDatabase(name, protocolType, resourceMetaData, new RuleMetaData(rules), schemas, props);
diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabasesFactory.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabasesFactory.java
index adea25aa228..4b4f3b06366 100644
--- a/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabasesFactory.java
+++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/metadata/database/ShardingSphereDatabasesFactory.java
@@ -52,15 +52,13 @@ public final class ShardingSphereDatabasesFactory {
      */
     public static Collection<ShardingSphereDatabase> create(final Map<String, DatabaseConfiguration> databaseConfigMap,
                                                             final Map<String, Collection<ShardingSphereSchema>> schemas,
-                                                            final ConfigurationProperties props, final ComputeNodeInstanceContext instanceContext,
-                                                            final DatabaseType protocolType) {
+                                                            final ConfigurationProperties props, final ComputeNodeInstanceContext instanceContext, final DatabaseType protocolType) {
         return databaseConfigMap.entrySet().stream()
                 .map(entry -> create(entry.getKey(), entry.getValue(), protocolType, schemas.get(entry.getKey()), props, instanceContext)).collect(Collectors.toList());
     }
     
     private static ShardingSphereDatabase create(final String databaseName, final DatabaseConfiguration databaseConfig, final DatabaseType protocolType,
-                                                 final Collection<ShardingSphereSchema> schemas, final ConfigurationProperties props,
-                                                 final ComputeNodeInstanceContext computeNodeInstanceContext) {
+                                                 final Collection<ShardingSphereSchema> schemas, final ConfigurationProperties props, final ComputeNodeInstanceContext computeNodeInstanceContext) {
         return databaseConfig.getStorageUnits().isEmpty()
                 ? ShardingSphereDatabaseFactory.create(databaseName, protocolType, props)
                 : ShardingSphereDatabaseFactory.create(databaseName, protocolType, databaseConfig, props, computeNodeInstanceContext, schemas);
diff --git a/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/fixture/ToggleFixtureDatabaseRuleBuilder.java b/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/fixture/ToggleFixtureDatabaseRuleBuilder.java
index 60a446bb6f0..e943112d022 100644
--- a/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/fixture/ToggleFixtureDatabaseRuleBuilder.java
+++ b/infra/common/src/test/java/org/apache/shardingsphere/infra/rule/builder/fixture/ToggleFixtureDatabaseRuleBuilder.java
@@ -29,8 +29,7 @@ public final class ToggleFixtureDatabaseRuleBuilder implements DatabaseRuleBuild
     
     @Override
     public ToggleFixtureRule build(final ToggleFixtureDatabaseRuleConfiguration ruleConfig, final String databaseName, final DatabaseType protocolType,
-                                   final ResourceMetaData resourceMetaData, final Collection<ShardingSphereRule> builtRules,
-                                   final ComputeNodeInstanceContext computeNodeInstanceContext) {
+                                   final ResourceMetaData resourceMetaData, final Collection<ShardingSphereRule> builtRules, final ComputeNodeInstanceContext computeNodeInstanceContext) {
         return new ToggleFixtureRule(ruleConfig);
     }