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:
Gary D. Gregory 2014-01-14 14:52:13 +00:00
parent 746bb7aea2
commit c7c70ec451
2 changed files with 4 additions and 2 deletions

View File

@ -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());
}

View File

@ -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';
}
}));