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 1babec1ab [ISSUE #4027] Comparison using reference equality instead of
value equality (#4392)
1babec1ab is described below
commit 1babec1ab575a6efdf3d1182f58ede153e844f9f
Author: Harshitha Sudhakar
<[email protected]>
AuthorDate: Wed Aug 23 07:52:09 2023 +0530
[ISSUE #4027] Comparison using reference equality instead of value equality
(#4392)
---
.../eventmesh/common/protocol/catalog/protos/RegistryResponse.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryResponse.java
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryResponse.java
index 3aa0e1c43..60bc01858 100644
---
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryResponse.java
+++
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/RegistryResponse.java
@@ -262,7 +262,7 @@ public final class RegistryResponse extends
@Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
+ return this.equals(DEFAULT_INSTANCE)
? new Builder() : new Builder().mergeFrom(this);
}
@@ -390,7 +390,7 @@ public final class RegistryResponse extends
}
public Builder mergeFrom(RegistryResponse other) {
- if (other == RegistryResponse.getDefaultInstance()) {
+ if (other.equals(RegistryResponse.getDefaultInstance())) {
return this;
}
this.mergeUnknownFields(other.unknownFields);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]