Convert 'for' loops to enhanced 'for' loops.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1432550 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2013-01-13 04:44:50 +00:00
parent a97d088847
commit 25d752996e
1 changed files with 4 additions and 4 deletions

View File

@ -130,8 +130,8 @@ class SocketClientConnectionImpl extends DefaultBHttpClientConnection
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 DefaultBHttpClientConnection
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());
}
}
}