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 b10c76f5d [ISSUE #3003] literal string comparison changed in 3 lines
new cdb416097 Merge pull request #3239 from
ChelseaChanu/incubator-eventmesh-fix-3003
b10c76f5d is described below
commit b10c76f5d0c87b9ab4d5659dd878cdc89e6acb41
Author: Chelsea <[email protected]>
AuthorDate: Wed Feb 22 17:11:41 2023 +0530
[ISSUE #3003] literal string comparison changed in 3 lines
---
.../apache/eventmesh/runtime/admin/handler/TCPClientHandler.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TCPClientHandler.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TCPClientHandler.java
index 130c2be8d..99cd548a1 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TCPClientHandler.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TCPClientHandler.java
@@ -190,13 +190,13 @@ public class TCPClientHandler 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]