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:
parent
a97d088847
commit
25d752996e
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue