Skip to content

Commit

Permalink
Fix sonar issues (#34103)
Browse files Browse the repository at this point in the history
  • Loading branch information
menghaoranss authored Dec 19, 2024
1 parent b16d38b commit 055041f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public RuleItemManager(final AtomicReference<MetaDataContexts> 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: {}",
Expand All @@ -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);
Expand Down

0 comments on commit 055041f

Please sign in to comment.