This is an automated email from the ASF dual-hosted git repository.
mikexue 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 aea2fbd86 [ISSUE #3404]Use isEmpty() to check whether the collection
is empty or not
new 8c953ac89 Merge pull request #3438 from KamToHung/fix_3404
aea2fbd86 is described below
commit aea2fbd86db09ca462176667c0d16c0d845c4dd8
Author: kamtohung <[email protected]>
AuthorDate: Mon Mar 13 10:19:29 2023 +0800
[ISSUE #3404]Use isEmpty() to check whether the collection is empty or not
---
.../eventmesh/runtime/admin/handler/ShowListenClientByTopicHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/ShowListenClientByTopicHandler.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/ShowListenClientByTopicHandler.java
index 1cf6ef6ee..bd33408a4 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/ShowListenClientByTopicHandler.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/ShowListenClientByTopicHandler.java
@@ -68,7 +68,7 @@ public class ShowListenClientByTopicHandler extends
AbstractHttpHandler {
if (!clientGroupMap.isEmpty()) {
for (ClientGroupWrapper cgw : clientGroupMap.values()) {
Set<Session> listenSessionSet =
cgw.getTopic2sessionInGroupMapping().get(topic);
- if (listenSessionSet != null && listenSessionSet.size() >
0) {
+ if (listenSessionSet != null &&
listenSessionSet.isEmpty()) {
result.append(String.format("group:%s",
cgw.getGroup())).append(newLine);
for (Session session : listenSessionSet) {
UserAgent userAgent = session.getClient();
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]