This is an automated email from the ASF dual-hosted git repository.
mikexue 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 effa0415a [ISSUE #3002] flipped the string comparison
effa0415a is described below
commit effa0415a47180ffee873f9fe3f2f938a08b5c24
Author: dipanker <[email protected]>
AuthorDate: Mon Apr 17 13:46:28 2023 +0530
[ISSUE #3002] flipped the string comparison
---
.../org/apache/eventmesh/runtime/admin/handler/RegistryHandler.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/RegistryHandler.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/RegistryHandler.java
index 94a361766..8c9026614 100755
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/RegistryHandler.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/RegistryHandler.java
@@ -83,7 +83,7 @@ public class RegistryHandler extends AbstractHttpHandler {
);
getRegistryResponseList.add(getRegistryResponse);
}
- getRegistryResponseList.sort(Comparator.comparing(lhs ->
lhs.getEventMeshClusterName()));
+
getRegistryResponseList.sort(Comparator.comparing(GetRegistryResponse::getEventMeshClusterName));
String result = JsonUtils.toJSONString(getRegistryResponseList);
httpExchange.sendResponseHeaders(200, result.getBytes().length);
@@ -117,10 +117,10 @@ public class RegistryHandler extends AbstractHttpHandler {
@Override
public void handle(HttpExchange httpExchange) throws IOException {
- if (httpExchange.getRequestMethod().equals("OPTION")) {
+ if ("OPTION".equals(httpExchange.getRequestMethod())) {
preflight(httpExchange);
}
- if (httpExchange.getRequestMethod().equals("GET")) {
+ if ("GET".equals(httpExchange.getRequestMethod())) {
get(httpExchange);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]