Convert control statement bodies to block.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558060 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
746bb7aea2
commit
c7c70ec451
|
@ -132,8 +132,9 @@ public class HttpCacheEntry implements Serializable {
|
|||
*/
|
||||
private Date parseDate() {
|
||||
final Header dateHdr = getFirstHeader(HTTP.DATE_HEADER);
|
||||
if (dateHdr == null)
|
||||
if (dateHdr == null) {
|
||||
return null;
|
||||
}
|
||||
return DateUtils.parseDate(dateHdr.getValue());
|
||||
}
|
||||
|
||||
|
|
|
@ -331,8 +331,9 @@ public class TestCachingExec extends TestCachingExecChain {
|
|||
throw new IOException("Response has been closed");
|
||||
|
||||
}
|
||||
if (size.incrementAndGet() > maxlength.get())
|
||||
if (size.incrementAndGet() > maxlength.get()) {
|
||||
return -1;
|
||||
}
|
||||
return 'y';
|
||||
}
|
||||
}));
|
||||
|
|
Loading…
Reference in New Issue