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 2a3c6800b [ISSUE #4023]Comparison using reference equality instead of
value equality.[Operation] (#4276)
2a3c6800b is described below
commit 2a3c6800b005bc219307719465f0f0ca5e3f8fde
Author: kyooosukedn <[email protected]>
AuthorDate: Mon Jul 24 15:12:54 2023 +0200
[ISSUE #4023]Comparison using reference equality instead of value
equality.[Operation] (#4276)
---
.../apache/eventmesh/common/protocol/catalog/protos/Operation.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/Operation.java
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/Operation.java
index 486ecf4ce..07e2407f4 100644
---
a/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/Operation.java
+++
b/eventmesh-common/src/main/java/org/apache/eventmesh/common/protocol/catalog/protos/Operation.java
@@ -407,7 +407,7 @@ public final class Operation extends
@Override
public Builder toBuilder() {
- return this == DEFAULT_INSTANCE
+ return this.equals(DEFAULT_INSTANCE)
? new Builder() : new Builder().mergeFrom(this);
}
@@ -545,7 +545,7 @@ public final class Operation extends
}
public Builder mergeFrom(Operation other) {
- if (other == Operation.getDefaultInstance()) {
+ if (other.equals(Operation.getDefaultInstance())) {
return this;
}
if (!other.getChannelName().isEmpty()) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]