jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1816910 - /jmeter/trunk/src/components/org/apache/jmeter/assertions/JSONPathAssertion.java
Date Fri, 01 Dec 2017 21:16:32 GMT
Author: pmouawad
Date: Fri Dec  1 21:16:32 2017
New Revision: 1816910

URL: http://svn.apache.org/viewvc?rev=1816910&view=rev
Log:
Bug 61845 - New Component JSON Assertion
Fix SONAR warning
Bugzilla Id: 61845

Modified:
    jmeter/trunk/src/components/org/apache/jmeter/assertions/JSONPathAssertion.java

Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/JSONPathAssertion.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/JSONPathAssertion.java?rev=1816910&r1=1816909&r2=1816910&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/JSONPathAssertion.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/JSONPathAssertion.java Fri Dec
 1 21:16:32 2017
@@ -137,7 +137,7 @@ public class JSONPathAssertion extends A
     }
 
     private boolean arrayMatched(JSONArray value) {
-        if (value.isEmpty() && getExpectedValue().equals("[]")) {
+        if (value.isEmpty() && "[]".equals(getExpectedValue())) {
             return true;
         }
 



Mime
View raw message