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/incubator-eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 1cc3b8add [ISSUE 3#2999]literal string comparison changed in 3 lines
new 5c63ab149 Merge pull request #3237 from
ChelseaChanu/incubator-eventmesh-fix-2999
1cc3b8add is described below
commit 1cc3b8adda1d9b73076822ef4b70c18c165ea7fa
Author: Chelsea <[email protected]>
AuthorDate: Wed Feb 22 17:00:12 2023 +0530
[ISSUE 3#2999]literal string comparison changed in 3 lines
---
.../apache/eventmesh/runtime/admin/handler/GrpcClientHandler.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/GrpcClientHandler.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/GrpcClientHandler.java
index ceccb951a..50d7aeed6 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/GrpcClientHandler.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/GrpcClientHandler.java
@@ -184,13 +184,13 @@ public class GrpcClientHandler extends
AbstractHttpHandler {
@Override
public void handle(HttpExchange httpExchange) throws IOException {
- if (httpExchange.getRequestMethod().equals("OPTIONS")) {
+ if ("OPTIONS".equals(httpExchange.getRequestMethod())) {
preflight(httpExchange);
}
- if (httpExchange.getRequestMethod().equals("GET")) {
+ if ("GET".equals(httpExchange.getRequestMethod())) {
list(httpExchange);
}
- if (httpExchange.getRequestMethod().equals("DELETE")) {
+ if ("DELETE".equals(httpExchange.getRequestMethod())) {
delete(httpExchange);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]