This is an automated email from the ASF dual-hosted git repository.
mytang0 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new ec314dc00 [ISSUE #2988] implemented equals() in String values
comparison (#2988)
new a96cf4bb6 Merge pull request #2994 from kanha-gupta/eventmesh-2988
ec314dc00 is described below
commit ec314dc00f4b3f52cb9ca0cfd0e520e689f0ea98
Author: Kanha gupta <[email protected]>
AuthorDate: Wed Feb 1 17:51:49 2023 +0530
[ISSUE #2988] implemented equals() in String values comparison (#2988)
---
.../eventmesh/runtime/core/consumergroup/ProducerGroupConf.java | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java
index e121755bc..681580197 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/core/consumergroup/ProducerGroupConf.java
@@ -48,13 +48,7 @@ public class ProducerGroupConf {
}
ProducerGroupConf that = (ProducerGroupConf) o;
- if (groupName == that.groupName) {
- return true;
- }
- if (groupName == null) {
- return false;
- }
- return groupName.equals(that.groupName);
+ return Objects.equals(groupName, that.groupName);
}
@Override
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]