You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ji...@apache.org on 2024/06/25 14:33:20 UTC
(shardingsphere) branch master updated: Refactor DuplicateRuleException (#31849)
This is an automated email from the ASF dual-hosted git repository.
jianglongtao 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 e690a0186f6 Refactor DuplicateRuleException (#31849)
e690a0186f6 is described below
commit e690a0186f699cf20ea26bfcaaa0e895a7bd10bf
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Tue Jun 25 22:33:13 2024 +0800
Refactor DuplicateRuleException (#31849)
---
.../exception/kernel/metadata/rule/DuplicateRuleException.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/metadata/rule/DuplicateRuleException.java b/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/metadata/rule/DuplicateRuleException.java
index f399b8bb96f..7e55c6fd52e 100644
--- a/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/metadata/rule/DuplicateRuleException.java
+++ b/infra/common/src/main/java/org/apache/shardingsphere/infra/exception/kernel/metadata/rule/DuplicateRuleException.java
@@ -29,14 +29,14 @@ public final class DuplicateRuleException extends RuleDefinitionException {
private static final long serialVersionUID = -1738699538105858939L;
public DuplicateRuleException(final String ruleType, final String databaseName, final Collection<String> ruleNames) {
- super(XOpenSQLState.DUPLICATE, 4, String.format("Duplicate %s rule names '%s' in database '%s'.", ruleType, ruleNames, databaseName));
+ super(XOpenSQLState.DUPLICATE, 4, "Duplicate %s rule names '%s' in database '%s'.", ruleType, ruleNames, databaseName);
}
public DuplicateRuleException(final String ruleType, final Collection<String> ruleNames) {
- super(XOpenSQLState.DUPLICATE, 4, String.format("Duplicate %s rule names '%s'.", ruleType, ruleNames));
+ super(XOpenSQLState.DUPLICATE, 4, "Duplicate %s rule names '%s'.", ruleType, ruleNames);
}
public DuplicateRuleException(final String type, final String databaseName) {
- super(XOpenSQLState.DUPLICATE, 4, String.format("Duplicate '%s' in database '%s'.", type, databaseName));
+ super(XOpenSQLState.DUPLICATE, 4, "Duplicate '%s' in database '%s'.", type, databaseName);
}
}