jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1817407 - /jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java
Date Thu, 07 Dec 2017 19:24:28 GMT
Author: pmouawad
Date: Thu Dec  7 19:24:27 2017
New Revision: 1817407

URL: http://svn.apache.org/viewvc?rev=1817407&view=rev
Log:
Make code clearer

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

Modified: jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java?rev=1817407&r1=1817406&r2=1817407&view=diff
==============================================================================
--- jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java (original)
+++ jmeter/trunk/src/components/org/apache/jmeter/assertions/ResponseAssertion.java Thu Dec
 7 19:24:27 2017
@@ -347,7 +347,6 @@ public class ResponseAssertion extends A
             return result.setResultForNull();
         }
 
-        boolean pass;
         boolean hasTrue = false;
         ArrayList<String> allCheckMessage = new ArrayList<>();
         try {
@@ -369,7 +368,7 @@ public class ResponseAssertion extends A
                 } else {
                     found = localMatcher.matches(toCheck, pattern);
                 }
-                pass = notTest ? !found : found;
+                boolean pass = notTest ? !found : found;
                 if (orTest) {
                     if (!pass) {
                         log.debug("Failed: {}", stringPattern);



Mime
View raw message