hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1558060 - in /httpcomponents/httpclient/trunk/httpclient-cache/src: main/java/org/apache/http/client/cache/HttpCacheEntry.java test/java/org/apache/http/impl/client/cache/TestCachingExec.java
Date Tue, 14 Jan 2014 14:52:13 GMT
Author: ggregory
Date: Tue Jan 14 14:52:13 2014
New Revision: 1558060

URL: http://svn.apache.org/r1558060
Log:
Convert control statement bodies to block.

Modified:
    httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/HttpCacheEntry.java
    httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingExec.java

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/HttpCacheEntry.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/HttpCacheEntry.java?rev=1558060&r1=1558059&r2=1558060&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/HttpCacheEntry.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/client/cache/HttpCacheEntry.java
Tue Jan 14 14:52:13 2014
@@ -132,8 +132,9 @@ public class HttpCacheEntry implements S
      */
     private Date parseDate() {
         final Header dateHdr = getFirstHeader(HTTP.DATE_HEADER);
-        if (dateHdr == null)
+        if (dateHdr == null) {
             return null;
+        }
         return DateUtils.parseDate(dateHdr.getValue());
     }
 

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingExec.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingExec.java?rev=1558060&r1=1558059&r2=1558060&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingExec.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestCachingExec.java
Tue Jan 14 14:52:13 2014
@@ -331,8 +331,9 @@ public class TestCachingExec extends Tes
                     throw new IOException("Response has been closed");
 
                 }
-                if (size.incrementAndGet() > maxlength.get())
+                if (size.incrementAndGet() > maxlength.get()) {
                     return -1;
+                }
                 return 'y';
             }
         }));



Mime
View raw message