Author: sebb
Date: Wed Dec  8 23:56:38 2010
New Revision: 1043786

URL: http://svn.apache.org/viewvc?rev=1043786&view=rev
Log:
Simplify - only need values from the map

Modified:
    
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java

Modified: 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
URL: 
http://svn.apache.org/viewvc/jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java?rev=1043786&r1=1043785&r2=1043786&view=diff
==============================================================================
--- 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
 (original)
+++ 
jakarta/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
 Wed Dec  8 23:56:38 2010
@@ -1042,10 +1042,8 @@ public class HTTPHC3Impl extends HTTPHCA
         Map<HostConfiguration, HttpClient> map = httpClients.get();
 
         if ( map != null ) {
-            for ( Iterator<Map.Entry<HostConfiguration, HttpClient> > it = 
map.entrySet().iterator(); it.hasNext(); )
+            for (HttpClient cl : map.values())
             {
-                Map.Entry<HostConfiguration, HttpClient> entry = it.next();
-                HttpClient cl = entry.getValue();
                 // Can cause NPE in HttpClient 3.1
                 
//((SimpleHttpConnectionManager)cl.getHttpConnectionManager()).shutdown();// 
Closes the connection
                 // Revert to original method:



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to