Skip to content

Commit

Permalink
[cleanup][misc] Add override annotation (#24033)
Browse files Browse the repository at this point in the history
  • Loading branch information
3pacccccc authored Feb 28, 2025
1 parent efcf7c2 commit 6fc9b79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ public CompletableFuture<Optional<BrokerLookupData>> lookupAsync(String broker)
return brokerLookupDataMetadataCache.get(keyPath(broker));
}

@Override
public CompletableFuture<Map<String, BrokerLookupData>> getAvailableBrokerLookupDataAsync() {
this.checkState();
return this.getAvailableBrokersAsync().thenCompose(availableBrokers -> {
Expand All @@ -224,6 +225,7 @@ public CompletableFuture<Map<String, BrokerLookupData>> getAvailableBrokerLookup
});
}

@Override
public synchronized void addListener(BiConsumer<String, NotificationType> listener) {
this.checkState();
this.listeners.add(listener);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1111,7 +1111,7 @@ public CompletableFuture<Optional<Topic>> getTopic(final TopicName topicName, bo
final TopicName topicNameEntity = TopicName.get(topicName.getPartitionedTopicName());
return fetchPartitionedTopicMetadataAsync(topicNameEntity)
.thenCompose((metadata) -> {
// Allow crate non-partitioned persistent topic that name includes
// Allow creating non-partitioned persistent topic that name includes
// `partition`
if (metadata.partitions == 0
|| topicName.getPartitionIndex() < metadata.partitions) {
Expand Down

0 comments on commit 6fc9b79

Please sign in to comment.