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/eventmesh.git


The following commit(s) were added to refs/heads/master by this push:
     new d2ce6c963 [ISSUE #4024] Change to use equals() to compare 
object.[QueryOperationsRequest]
d2ce6c963 is described below

commit d2ce6c96339bdc3646f0b7cc83f764e8cf827e2f
Author: yanrongzhen <[email protected]>
AuthorDate: Wed Oct 11 16:53:19 2023 +0800

    [ISSUE #4024] Change to use equals() to compare 
object.[QueryOperationsRequest]
---
 .../common/protocol/catalog/protos/QueryOperationsRequest.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsRequest.java
 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsRequest.java
index 843b6f3ae..27401bb4b 100644
--- 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsRequest.java
+++ 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsRequest.java
@@ -383,7 +383,7 @@ public final class QueryOperationsRequest extends
 
     @Override
     public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE
+        return this.equals(DEFAULT_INSTANCE)
             ? new Builder() : new Builder().mergeFrom(this);
     }
 
@@ -518,7 +518,7 @@ public final class QueryOperationsRequest extends
         }
 
         public Builder mergeFrom(QueryOperationsRequest other) {
-            if (other == QueryOperationsRequest.getDefaultInstance()) {
+            if (other.equals(QueryOperationsRequest.getDefaultInstance())) {
                 return this;
             }
             if (!other.getServiceName().isEmpty()) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to