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 3d4e922df [ISSUE #4025] Comparison using reference equality instead of
value equality (#4387)
3d4e922df is described below
commit 3d4e922dfd96e7b21546a95654e72688238da639
Author: AbhishekPSingh07 <[email protected]>
AuthorDate: Tue Aug 22 14:17:07 2023 +0530
[ISSUE #4025] Comparison using reference equality instead of value equality
(#4387)
---
.../common/protocol/catalog/protos/QueryOperationsResponse.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsResponse.java
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsResponse.java
index 03a7c8c03..da89c6058 100644
---
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsResponse.java
+++
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/QueryOperationsResponse.java
@@ -335,7 +335,7 @@ public final class QueryOperationsResponse extends
@Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
+ return this.equals(DEFAULT_INSTANCE)
? new Builder() : new Builder().mergeFrom(this);
}
@@ -481,7 +481,7 @@ public final class QueryOperationsResponse extends
}
public Builder mergeFrom(QueryOperationsResponse other) {
- if (other == QueryOperationsResponse.getDefaultInstance()) {
+ if (other.equals(QueryOperationsResponse.getDefaultInstance())) {
return this;
}
if (operationsBuilder_ == null) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]