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 2005/04/27 23:48:25 UTC

cvs commit: jakarta-jmeter/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler LDAPExtSampler.java

sebb        2005/04/27 14:48:25

  Modified:    src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler
                        LDAPExtSampler.java
  Log:
  Move class variables to method.
  
  Revision  Changes    Path
  1.4       +3 -5      jakarta-jmeter/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java
  
  Index: LDAPExtSampler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-jmeter/src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- LDAPExtSampler.java	4 Jan 2005 19:47:19 -0000	1.3
  +++ LDAPExtSampler.java	27 Apr 2005 21:48:25 -0000	1.4
  @@ -107,8 +107,6 @@
       //create the new entry in the server
       public static int counter=0;
       
  -    private DirContext dirContext;
  -    private  LdapExtClient temp_client ;
       public static Hashtable ldapConnections=new Hashtable();
       public static Hashtable ldapContexts=new Hashtable();
      
  @@ -721,8 +719,8 @@
           String iets;
           NamingEnumeration attrlist;
           res.setSampleLabel(getLabel()+":"+getPropertyAsString(TEST)+":"+Thread.currentThread().getName()+";"+System.currentTimeMillis());
  -        temp_client =(LdapExtClient) ldapConnections.get(Thread.currentThread().getName());
  -        dirContext =(DirContext) ldapContexts.get(Thread.currentThread().getName());
  +		LdapExtClient temp_client =(LdapExtClient) ldapConnections.get(Thread.currentThread().getName());
  +		DirContext dirContext =(DirContext) ldapContexts.get(Thread.currentThread().getName());
           if (temp_client == null) {
             	 temp_client =new LdapExtClient();
                try {
  
  
  

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