jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fschumac...@apache.org
Subject [jmeter] 06/07: Use == to compare enumerations
Date Sat, 28 Sep 2019 19:30:18 GMT
This is an automated email from the ASF dual-hosted git repository.

fschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git

commit d5e13a2c9f41587bbd52cd2cceb415a6dbf4fe1e
Author: Felix Schumacher <felix.schumacher@internetallee.de>
AuthorDate: Sat Sep 28 21:20:28 2019 +0200

    Use == to compare enumerations
---
 .../apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java
b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java
index cc63e9f..065337d 100644
--- a/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java
+++ b/src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/gui/action/ParseCurlCommandAction.java
@@ -430,7 +430,7 @@ public class ParseCurlCommandAction extends AbstractAction implements
MenuCreato
         for (int i = 0; i < authManager.getAuthObjects().size(); i++) {
             if (!authManager.getAuthObjectAt(i).getUser().equals(auth.getUser())
                     || !authManager.getAuthObjectAt(i).getPass().equals(auth.getPass())
-                    || !authManager.getAuthObjectAt(i).getMechanism().equals(auth.getMechanism()))
{
+                    || authManager.getAuthObjectAt(i).getMechanism() != auth.getMechanism())
{
                 return true;
             }
         }


Mime
View raw message