jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1828109 - in /jmeter/trunk/src/core/org/apache/jmeter/control: GenericController.java IteratingController.java
Date Sat, 31 Mar 2018 14:57:30 GMT
Author: pmouawad
Date: Sat Mar 31 14:57:30 2018
New Revision: 1828109

URL: http://svn.apache.org/viewvc?rev=1828109&view=rev
Log:
Move constant out of interface

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/control/GenericController.java
    jmeter/trunk/src/core/org/apache/jmeter/control/IteratingController.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/control/GenericController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/GenericController.java?rev=1828109&r1=1828108&r2=1828109&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/GenericController.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/GenericController.java Sat Mar 31 14:57:30
2018
@@ -53,6 +53,8 @@ public class GenericController extends A
 
     private static final Logger log = LoggerFactory.getLogger(GenericController.class);
 
+    static final String INDEX_VAR_NAME_SUFFIX = "__idx";
+
     private transient LinkedList<LoopIterationListener> iterationListeners = new LinkedList<>();
 
     // Only create the map if it is required

Modified: jmeter/trunk/src/core/org/apache/jmeter/control/IteratingController.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/control/IteratingController.java?rev=1828109&r1=1828108&r2=1828109&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/control/IteratingController.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/control/IteratingController.java Sat Mar 31 14:57:30
2018
@@ -27,7 +27,6 @@ import org.apache.jmeter.util.JMeterUtil
  * @since 4.1
  */
 public interface IteratingController {
-    final String INDEX_VAR_NAME_SUFFIX = "__idx";
     
     /**
      * Start next iteration ("continue" keyword equivalent in loops)
@@ -47,7 +46,7 @@ public interface IteratingController {
         JMeterVariables variables = JMeterContextService.getContext().getVariables();
         if(variables != null) {
             variables.putObject(
-                    JMeterUtils.formatJMeterExportedVariableName(elementName+INDEX_VAR_NAME_SUFFIX),
iterCount);
+                    JMeterUtils.formatJMeterExportedVariableName(elementName+GenericController.INDEX_VAR_NAME_SUFFIX),
iterCount);
         }
     }
     



Mime
View raw message