You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@eventmesh.apache.org by mi...@apache.org on 2023/02/23 09:54:47 UTC
[incubator-eventmesh] branch master updated: [ISSUE #3004] literal string comparision changed in 4 lines
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 7eb1658d7 [ISSUE #3004] literal string comparision changed in 4 lines
new af1e2cabd Merge pull request #3240 from ChelseaChanu/incubator-eventmesh-fix-3004
7eb1658d7 is described below
commit 7eb1658d723b1e3845affa8b3d852c98a93f8d46
Author: Chelsea <88...@users.noreply.github.com>
AuthorDate: Wed Feb 22 17:15:52 2023 +0530
[ISSUE #3004] literal string comparision changed in 4 lines
---
.../org/apache/eventmesh/runtime/admin/handler/TopicHandler.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TopicHandler.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TopicHandler.java
index 5f1189cad..98196db18 100644
--- a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TopicHandler.java
+++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/TopicHandler.java
@@ -186,16 +186,16 @@ public class TopicHandler 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("POST")) {
+ if ("POST".equals(httpExchange.getRequestMethod())) {
post(httpExchange);
}
- if (httpExchange.getRequestMethod().equals("DELETE")) {
+ if ("DELETE".equals(httpExchange.getRequestMethod())) {
delete(httpExchange);
}
- if (httpExchange.getRequestMethod().equals("GET")) {
+ if ("GET".equals(httpExchange.getRequestMethod())) {
get(httpExchange);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org