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:25:00 UTC
[incubator-eventmesh] branch master updated: [ISSUE #3001]literal string comparison changed in 2 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 ce6656172 [ISSUE #3001]literal string comparison changed in 2 lines
new a9ffac537 Merge pull request #3238 from ChelseaChanu/incubator-eventmesh-fix-3001
ce6656172 is described below
commit ce6656172ea24a3e36bae8cb11d148a32237958a
Author: Chelsea <88...@users.noreply.github.com>
AuthorDate: Wed Feb 22 17:07:56 2023 +0530
[ISSUE #3001]literal string comparison changed in 2 lines
---
.../org/apache/eventmesh/runtime/admin/handler/MetricsHandler.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/MetricsHandler.java b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/MetricsHandler.java
index 4fdbe4b6b..07641ff3d 100755
--- a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/MetricsHandler.java
+++ b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/MetricsHandler.java
@@ -149,10 +149,10 @@ public class MetricsHandler 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())) {
get(httpExchange);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@eventmesh.apache.org
For additional commands, e-mail: commits-help@eventmesh.apache.org