You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by jo...@apache.org on 2023/01/20 11:01:16 UTC

[incubator-eventmesh] branch revert-2936-patch-1 created (now 869002e9c)

This is an automated email from the ASF dual-hosted git repository.

jonyang pushed a change to branch revert-2936-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git


      at 869002e9c Revert "Used CollectionUtils.isempty to check null value (#2936)"

This branch includes the following new commits:

     new 869002e9c Revert "Used CollectionUtils.isempty to check null value (#2936)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org


[incubator-eventmesh] 01/01: Revert "Used CollectionUtils.isempty to check null value (#2936)"

Posted by jo...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

jonyang pushed a commit to branch revert-2936-patch-1
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git

commit 869002e9cf7700f454326f2bcc645f3813ccfaf0
Author: jonyangx <ya...@gmail.com>
AuthorDate: Fri Jan 20 19:01:10 2023 +0800

    Revert "Used CollectionUtils.isempty to check null value (#2936)"
    
    This reverts commit 03e84a34002ff22fc326e9ded085678dbb0d2837.
---
 .../org/apache/eventmesh/client/grpc/producer/CloudEventProducer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/grpc/producer/CloudEventProducer.java b/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/grpc/producer/CloudEventProducer.java
index 1644934b5..fe678c468 100644
--- a/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/grpc/producer/CloudEventProducer.java
+++ b/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/grpc/producer/CloudEventProducer.java
@@ -57,7 +57,7 @@ public class CloudEventProducer {
     public Response publish(List<CloudEvent> events) {
         logger.info("BatchPublish message, batch size=" + events.size());
 
-        if (CollectionUtils.isEmpty(events)) {
+        if (events.size() == 0) {
             return null;
         }
         List<CloudEvent> enhancedEvents = events.stream()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org