From 9df55291b817419b35d11aa7b98d6c110b4c6428 Mon Sep 17 00:00:00 2001 From: Haoran Meng Date: Thu, 19 Dec 2024 14:10:43 +0800 Subject: [PATCH] Fix sonar issues --- .../shardingsphere/mode/metadata/manager/RuleItemManager.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/manager/RuleItemManager.java b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/manager/RuleItemManager.java index 6d3adafe72378..5e48f7ccf3cff 100644 --- a/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/manager/RuleItemManager.java +++ b/mode/core/src/main/java/org/apache/shardingsphere/mode/metadata/manager/RuleItemManager.java @@ -53,6 +53,7 @@ public RuleItemManager(final AtomicReference metaDataContexts, * @param alterRuleItem alter rule item * @throws SQLException SQL Exception */ + @SuppressWarnings({"rawtypes", "unchecked"}) public void alterRuleItem(final AlterRuleItem alterRuleItem) throws SQLException { Preconditions.checkArgument(alterRuleItem.getActiveVersion().equals(metaDataPersistService.getMetaDataVersionPersistService() .getActiveVersionByFullPath(alterRuleItem.getActiveVersionKey())), "Invalid active version: {} of key: {}", @@ -74,6 +75,7 @@ public void alterRuleItem(final AlterRuleItem alterRuleItem) throws SQLException * @param dropRuleItem drop rule item * @throws SQLException SQL Exception */ + @SuppressWarnings({"rawtypes", "unchecked"}) public void dropRuleItem(final DropRuleItem dropRuleItem) throws SQLException { String databaseName = dropRuleItem.getDatabaseName(); Preconditions.checkState(metaDataContexts.get().getMetaData().containsDatabase(databaseName), "No database '%s' exists.", databaseName);