Skip to content

Commit

Permalink
Merge pull request #2204 from antiriez/master
Browse files Browse the repository at this point in the history
[ISSUE #2199]Update EventMeshConsumer.java replace isSize == 0 with isEmpty()
  • Loading branch information
MajorHe1 authored Nov 14, 2022
2 parents 6e9eaf0 + 52fa2d6 commit 791b197
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ public synchronized boolean deregisterClient(ConsumerGroupClient client) {
}

public synchronized void init() throws Exception {
if (consumerGroupTopicConfig.size() == 0) {
if (consumerGroupTopicConfig.isEmpty()) {
// no topics, don't init the consumer
return;
}
Expand Down Expand Up @@ -163,7 +163,7 @@ public synchronized void init() throws Exception {
}

public synchronized void start() throws Exception {
if (consumerGroupTopicConfig.size() == 0) {
if (consumerGroupTopicConfig.isEmpty()) {
// no topics, don't start the consumer
return;
}
Expand Down Expand Up @@ -301,4 +301,4 @@ public void onException(OnExceptionContext context) {
}
});
}
}
}

0 comments on commit 791b197

Please sign in to comment.