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 <[email protected]>
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to