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

mxsm 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 82e00390c [ISSUE #4026] Comparison using reference equality instead of 
value equality.[RegistryRequest] (#4482)
82e00390c is described below

commit 82e00390cf4edb27573302b1b736d7448dc4ad53
Author: Kirill Saied <[email protected]>
AuthorDate: Fri Oct 13 04:07:00 2023 +0200

    [ISSUE #4026] Comparison using reference equality instead of value 
equality.[RegistryRequest] (#4482)
---
 .../eventmesh/common/protocol/catalog/protos/RegistryRequest.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryRequest.java
 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryRequest.java
index b80ad2f5e..ae6557187 100644
--- 
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryRequest.java
+++ 
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryRequest.java
@@ -342,7 +342,7 @@ public final class RegistryRequest extends
 
     @Override
     public Builder toBuilder() {
-        return this == DEFAULT_INSTANCE
+        return this.equals(DEFAULT_INSTANCE)
                 ? new Builder() : new Builder().mergeFrom(this);
     }
 
@@ -477,7 +477,7 @@ public final class RegistryRequest extends
         }
 
         public Builder mergeFrom(RegistryRequest other) {
-            if (other == RegistryRequest.getDefaultInstance()) {
+            if (other.equals(RegistryRequest.getDefaultInstance())) {
                 return this;
             }
             if (!other.getFileName().isEmpty()) {


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

Reply via email to