hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1432550 - /httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/SocketClientConnectionImpl.java
Date Sun, 13 Jan 2013 04:44:51 GMT
Author: ggregory
Date: Sun Jan 13 04:44:50 2013
New Revision: 1432550

URL: http://svn.apache.org/viewvc?rev=1432550&view=rev
Log:
Convert 'for' loops to enhanced 'for' loops.

Modified:
    httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/SocketClientConnectionImpl.java

Modified: httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/SocketClientConnectionImpl.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/SocketClientConnectionImpl.java?rev=1432550&r1=1432549&r2=1432550&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/SocketClientConnectionImpl.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient/src/main/java/org/apache/http/impl/conn/SocketClientConnectionImpl.java
Sun Jan 13 04:44:50 2013
@@ -130,8 +130,8 @@ class SocketClientConnectionImpl extends
         if (response != null && this.headerlog.isDebugEnabled()) {
             this.headerlog.debug(this.id + " << " + response.getStatusLine().toString());
             Header[] headers = response.getAllHeaders();
-            for (int i = 0; i < headers.length; i++) {
-                this.headerlog.debug(this.id + " << " + headers[i].toString());
+            for (Header header : headers) {
+                this.headerlog.debug(this.id + " << " + header.toString());
             }
         }
     }
@@ -141,8 +141,8 @@ class SocketClientConnectionImpl extends
         if (request != null && this.headerlog.isDebugEnabled()) {
             this.headerlog.debug(id + " >> " + request.getRequestLine().toString());
             Header[] headers = request.getAllHeaders();
-            for (int i = 0; i < headers.length; i++) {
-                this.headerlog.debug(this.id + " >> " + headers[i].toString());
+            for (Header header : headers) {
+                this.headerlog.debug(this.id + " >> " + header.toString());
             }
         }
     }



Mime
View raw message