From c9600e921406bc827c44efab3a69b1592119154b Mon Sep 17 00:00:00 2001 From: Haoran Meng Date: Mon, 29 Jul 2024 18:30:22 +0800 Subject: [PATCH] Fix checkstyle --- .../rule/engine/database/type/AlterDatabaseRuleOperator.java | 3 +-- .../rule/engine/database/type/CreateDatabaseRuleOperator.java | 3 +-- .../rule/engine/database/type/DropDatabaseRuleOperator.java | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/AlterDatabaseRuleOperator.java b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/AlterDatabaseRuleOperator.java index 0a9d51aa13c85..9dc5e4a2fe2a0 100644 --- a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/AlterDatabaseRuleOperator.java +++ b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/AlterDatabaseRuleOperator.java @@ -46,8 +46,7 @@ public final class AlterDatabaseRuleOperator implements DatabaseRuleOperator { @Override @SuppressWarnings("unchecked") - public void operate(final DatabaseRuleDefinitionStatement sqlStatement, final ShardingSphereDatabase database, - final RuleConfiguration currentRuleConfig) throws SQLException { + public void operate(final DatabaseRuleDefinitionStatement sqlStatement, final ShardingSphereDatabase database, final RuleConfiguration currentRuleConfig) throws SQLException { RuleConfiguration toBeAlteredRuleConfig = executor.buildToBeAlteredRuleConfiguration(sqlStatement); MetaDataManagerPersistService metaDataManagerPersistService = contextManager.getPersistServiceFacade().getMetaDataManagerPersistService(); RuleConfiguration toBeDroppedRuleConfig = executor.buildToBeDroppedRuleConfiguration(toBeAlteredRuleConfig); diff --git a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/CreateDatabaseRuleOperator.java b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/CreateDatabaseRuleOperator.java index 934222c218181..8645350a27cf8 100644 --- a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/CreateDatabaseRuleOperator.java +++ b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/CreateDatabaseRuleOperator.java @@ -46,8 +46,7 @@ public final class CreateDatabaseRuleOperator implements DatabaseRuleOperator { @Override @SuppressWarnings("unchecked") - public void operate(final DatabaseRuleDefinitionStatement sqlStatement, final ShardingSphereDatabase database, - final RuleConfiguration currentRuleConfig) throws SQLException { + public void operate(final DatabaseRuleDefinitionStatement sqlStatement, final ShardingSphereDatabase database, final RuleConfiguration currentRuleConfig) throws SQLException { RuleConfiguration toBeCreatedRuleConfig = executor.buildToBeCreatedRuleConfiguration(sqlStatement); MetaDataManagerPersistService metaDataManagerPersistService = contextManager.getPersistServiceFacade().getMetaDataManagerPersistService(); metaDataManagerPersistService.alterRuleConfiguration(database.getName(), decorateRuleConfiguration(database, toBeCreatedRuleConfig)); diff --git a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/DropDatabaseRuleOperator.java b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/DropDatabaseRuleOperator.java index 4635fe28527d7..9cc5e5df5fbc5 100644 --- a/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/DropDatabaseRuleOperator.java +++ b/infra/distsql-handler/src/main/java/org/apache/shardingsphere/distsql/handler/engine/update/rdl/rule/engine/database/type/DropDatabaseRuleOperator.java @@ -48,8 +48,7 @@ public final class DropDatabaseRuleOperator implements DatabaseRuleOperator { @Override @SuppressWarnings("unchecked") - public void operate(final DatabaseRuleDefinitionStatement sqlStatement, final ShardingSphereDatabase database, - final RuleConfiguration currentRuleConfig) throws SQLException { + public void operate(final DatabaseRuleDefinitionStatement sqlStatement, final ShardingSphereDatabase database, final RuleConfiguration currentRuleConfig) throws SQLException { if (!executor.hasAnyOneToBeDropped(sqlStatement)) { return; }