Skip to content

Commit

Permalink
Fix sonar issues
Browse files Browse the repository at this point in the history
  • Loading branch information
menghaoranss committed Dec 19, 2024
1 parent b16d38b commit 9df5529
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 9df5529

Please sign in to comment.