You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by ma...@apache.org on 2022/11/14 03:47:20 UTC
[incubator-eventmesh] branch master updated: Update EventMeshConsumer.java
This is an automated email from the ASF dual-hosted git repository.
majorhe pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 52fa2d69 Update EventMeshConsumer.java
new 791b1978 Merge pull request #2204 from antiriez/master
52fa2d69 is described below
commit 52fa2d69b07b0e0fd804ba784a462eb9882dfd0c
Author: antiriez <12...@qq.com>
AuthorDate: Mon Nov 14 11:24:18 2022 +0800
Update EventMeshConsumer.java
replace isSize == 0 with isEmpty()
---
.../runtime/core/protocol/grpc/consumer/EventMeshConsumer.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/grpc/consumer/EventMeshConsumer.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/grpc/consumer/EventMeshConsumer.java
index 5e95edc0..d8022829 100644
--- a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/grpc/consumer/EventMeshConsumer.java
+++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/protocol/grpc/consumer/EventMeshConsumer.java
@@ -133,7 +133,7 @@ public class EventMeshConsumer {
}
public synchronized void init() throws Exception {
- if (consumerGroupTopicConfig.size() == 0) {
+ if (consumerGroupTopicConfig.isEmpty()) {
// no topics, don't init the consumer
return;
}
@@ -163,7 +163,7 @@ public class EventMeshConsumer {
}
public synchronized void start() throws Exception {
- if (consumerGroupTopicConfig.size() == 0) {
+ if (consumerGroupTopicConfig.isEmpty()) {
// no topics, don't start the consumer
return;
}
@@ -301,4 +301,4 @@ public class EventMeshConsumer {
}
});
}
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org