hc-commits mailing list archives

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

URL: http://svn.apache.org/r1558061
Log:
Add missing '@Override' annotations.

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

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/SizeLimitedResponseReader.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/SizeLimitedResponseReader.java?rev=1558061&r1=1558060&r2=1558061&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/SizeLimitedResponseReader.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/main/java/org/apache/http/impl/client/cache/SizeLimitedResponseReader.java
Tue Jan 14 14:53:23 2014
@@ -139,6 +139,7 @@ class SizeLimitedResponseReader {
                 new Class<?>[] { CloseableHttpResponse.class },
                 new ResponseProxyHandler(reconstructed) {
 
+                    @Override
                     public void close() throws IOException {
                         response.close();
                     }

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=1558061&r1=1558060&r2=1558061&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:53:23 2014
@@ -87,6 +87,7 @@ public class TestCachingExec extends Tes
     private Date requestDate;
     private Date responseDate;
 
+    @Override
     @Before
     public void setUp() {
         super.setUp();
@@ -129,6 +130,7 @@ public class TestCachingExec extends Tes
         return impl = new CachingExec(backend, cache, config);
     }
 
+    @Override
     protected void replayMocks() {
         super.replayMocks();
         replay(mockBackendResponse);
@@ -137,6 +139,7 @@ public class TestCachingExec extends Tes
         }
     }
 
+    @Override
     protected void verifyMocks() {
         super.verifyMocks();
         verify(mockBackendResponse);
@@ -320,11 +323,13 @@ public class TestCachingExec extends Tes
         resp1.setEntity(new InputStreamEntity(new InputStream() {
             private Throwable closed;
 
+            @Override
             public void close() throws IOException {
                 closed = new Throwable();
                 super.close();
             }
 
+            @Override
             public int read() throws IOException {
                 Thread.yield();
                 if (closed != null) {

Modified: httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestSizeLimitedResponseReader.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestSizeLimitedResponseReader.java?rev=1558061&r1=1558060&r2=1558061&view=diff
==============================================================================
--- httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestSizeLimitedResponseReader.java
(original)
+++ httpcomponents/httpclient/trunk/httpclient-cache/src/test/java/org/apache/http/impl/client/cache/TestSizeLimitedResponseReader.java
Tue Jan 14 14:53:23 2014
@@ -146,6 +146,7 @@ public class TestSizeLimitedResponseRead
                         new Class<?>[] { CloseableHttpResponse.class },
                         new ResponseProxyHandler(new BasicHttpResponse(
                                 HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK")) {
+                            @Override
                             public void close() throws IOException {
                                 closed.set(true);
                             }



Mime
View raw message