You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2004/02/22 20:17:45 UTC

cvs commit: jakarta-jmeter/src/components/org/apache/jmeter/modifiers UserParameters.java

sebb        2004/02/22 11:17:45

  Modified:    src/components/org/apache/jmeter/modifiers
                        UserParameters.java
  Log:
  For speed, use getThreadContext() instead of JMeterContextService
  
  Revision  Changes    Path
  1.22      +4 -6      jakarta-jmeter/src/components/org/apache/jmeter/modifiers/UserParameters.java
  
  Index: UserParameters.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/components/org/apache/jmeter/modifiers/UserParameters.java,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- UserParameters.java	13 Feb 2004 01:39:06 -0000	1.21
  +++ UserParameters.java	22 Feb 2004 19:17:45 -0000	1.22
  @@ -30,7 +30,6 @@
   import org.apache.jmeter.testelement.property.BooleanProperty;
   import org.apache.jmeter.testelement.property.CollectionProperty;
   import org.apache.jmeter.testelement.property.PropertyIterator;
  -import org.apache.jmeter.threads.JMeterContextService;
   import org.apache.jmeter.threads.JMeterVariables;
   import org.apache.jorphan.logging.LoggingManager;
   import org.apache.log.Logger;
  @@ -108,7 +107,7 @@
           if (threadValues.size() > 0)
           {
               return (CollectionProperty) threadValues.get(
  -                JMeterContextService.getContext().getThreadNum()
  +                getThreadContext().getThreadNum()
                       % threadValues.size());
           }
           else
  @@ -149,8 +148,7 @@
   			}
               PropertyIterator namesIter = getNames().iterator();
               PropertyIterator valueIter = getValues().iterator();
  -            JMeterVariables jmvars =
  -                JMeterContextService.getContext().getVariables();
  +            JMeterVariables jmvars = getThreadContext().getVariables();
               while (namesIter.hasNext() && valueIter.hasNext())
               {
                   String name = namesIter.next().getStringValue();
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org