You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2017/12/01 21:16:32 UTC
svn commit: r1816910 -
/jmeter/trunk/src/components/org/apache/jmeter/assertions/JSONPathAssertion.java
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;
}