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/10/27 09:48:05 UTC
svn commit: r1813494 -
/jmeter/trunk/src/core/org/apache/jmeter/control/WhileController.java
Author: pmouawad
Date: Fri Oct 27 09:48:04 2017
New Revision: 1813494
URL: http://svn.apache.org/viewvc?rev=1813494&view=rev
Log:
Use isEmpty
Modified:
jmeter/trunk/src/core/org/apache/jmeter/control/WhileController.java
Modified: jmeter/trunk/src/core/org/apache/jmeter/control/WhileController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/WhileController.java?rev=1813494&r1=1813493&r2=1813494&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/WhileController.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/WhileController.java Fri Oct 27 09:48:04 2017
@@ -57,7 +57,7 @@ public class WhileController extends Gen
log.debug("Condition string: '{}'", cnd);
boolean res;
// If blank, only check previous sample when at end of loop
- if ((loopEnd && cnd.length() == 0) || "LAST".equalsIgnoreCase(cnd)) {// $NON-NLS-1$
+ if ((loopEnd && cnd.isEmpty()) || "LAST".equalsIgnoreCase(cnd)) {// $NON-NLS-1$
JMeterVariables threadVars = JMeterContextService.getContext().getVariables();
res = "false".equalsIgnoreCase(threadVars.get(JMeterThread.LAST_SAMPLE_OK));// $NON-NLS-1$
} else {