Skip to content

Commit

Permalink
Remove useless @SuppressWarnings("UnstableApiUsage") (#31032)
Browse files Browse the repository at this point in the history
* Code format for test cases

* Code format for test cases

* Code format for test cases

* Code format for test cases

* Remove useless @SuppressWarnings("UnstableApiUsage")
  • Loading branch information
terrymanu authored Apr 27, 2024
1 parent 597da93 commit 1a0b731
Show file tree
Hide file tree
Showing 8 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/**
* Event bus context.
*/
@SuppressWarnings("UnstableApiUsage")
public final class EventBusContext {

private final EventBus eventBus = new EventBus();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
import java.util.LinkedList;
import java.util.List;

@SuppressWarnings("UnstableApiUsage")
@Getter
public final class EventListenerFixture {

Expand All @@ -34,6 +33,7 @@ public final class EventListenerFixture {
*
* @param event event
*/
@SuppressWarnings("unused")
@Subscribe
public void listen(final String event) {
events.add(event);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public final class RuleItemChangedSubscriber {
*
* @param event alter rule item event
*/
@SuppressWarnings({"UnstableApiUsage", "rawtypes", "unchecked"})
@SuppressWarnings({"rawtypes", "unchecked", "unused"})
@Subscribe
public void renew(final AlterRuleItemEvent event) {
if (!event.getActiveVersion().equals(contextManager.getMetaDataContexts().getPersistService().getMetaDataVersionPersistService().getActiveVersionByFullPath(event.getActiveVersionKey()))) {
Expand All @@ -69,7 +69,7 @@ public void renew(final AlterRuleItemEvent event) {
*
* @param event drop rule item event
*/
@SuppressWarnings({"UnstableApiUsage", "rawtypes", "unchecked"})
@SuppressWarnings({"rawtypes", "unchecked", "unused"})
@Subscribe
public void renew(final DropRuleItemEvent event) {
if (!contextManager.getMetaDataContexts().getMetaData().containsDatabase(event.getDatabaseName())) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/**
* ShardingSphere schema data registry subscriber.
*/
@SuppressWarnings("UnstableApiUsage")
public final class ShardingSphereSchemaDataRegistrySubscriber {

private final ShardingSphereDataPersistService persistService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
/**
* Cluster process subscriber.
*/
@SuppressWarnings("UnstableApiUsage")
public final class ClusterProcessSubscriber implements ProcessSubscriber {

private final PersistRepository repository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
/**
* Cluster status subscriber.
*/
@SuppressWarnings("UnstableApiUsage")
public final class ClusterStatusSubscriber {

private final ClusterPersistRepository repository;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
/**
* Standalone process subscriber.
*/
@SuppressWarnings("UnstableApiUsage")
public final class StandaloneProcessSubscriber implements ProcessSubscriber {

private final EventBusContext eventBusContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
/**
* Show process list executor.
*/
@SuppressWarnings("UnstableApiUsage")
public final class ShowProcessListExecutor implements DatabaseAdminQueryExecutor {

private final boolean showFullProcesslist;
Expand All @@ -68,6 +67,7 @@ public ShowProcessListExecutor(final boolean showFullProcesslist) {
*
* @param event show process list response event
*/
@SuppressWarnings("unused")
@Subscribe
public void receiveProcessListData(final ShowProcessListResponseEvent event) {
processes = event.getProcesses();
Expand Down

0 comments on commit 1a0b731

Please sign in to comment.