Skip to content

Commit

Permalink
GH-3349: Polish
Browse files Browse the repository at this point in the history
Fixes: #3349

* The KafkaListenerEndpointRegistry refactoring for List.isEmpty() instead of List.size() > 0
  • Loading branch information
wzq1022 committed Jul 11, 2024
1 parent bc3017c commit 2c8ba21
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ public void stop() {
public void stop(Runnable callback) {
this.running = false;
Collection<MessageListenerContainer> listenerContainersToStop = getListenerContainers();
if (listenerContainersToStop.size() > 0) {
if (!listenerContainersToStop.isEmpty()) {
AggregatingCallback aggregatingCallback = new AggregatingCallback(listenerContainersToStop.size(),
callback);
for (MessageListenerContainer listenerContainer : listenerContainersToStop) {
Expand Down

0 comments on commit 2c8ba21

Please sign in to comment.