hc-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1788704 - in /httpcomponents/httpclient/branches/4.6.x: httpclient-cache/src/main/java-deprecated/org/apache/http/impl/client/cache/CachingHttpClient.java httpclient-osgi/src/main/java/org/apache/http/osgi/impl/WeakList.java
Date Sun, 26 Mar 2017 02:09:40 GMT
Author: ggregory
Date: Sun Mar 26 02:09:40 2017
New Revision: 1788704

URL: http://svn.apache.org/viewvc?rev=1788704&view=rev
Log:
Add missing '@Override' annotations.

Modified:
    httpcomponents/httpclient/branches/4.6.x/httpclient-cache/src/main/java-deprecated/org/apache/http/impl/client/cache/CachingHttpClient.java
    httpcomponents/httpclient/branches/4.6.x/httpclient-osgi/src/main/java/org/apache/http/osgi/impl/WeakList.java

Modified: httpcomponents/httpclient/branches/4.6.x/httpclient-cache/src/main/java-deprecated/org/apache/http/impl/client/cache/CachingHttpClient.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.6.x/httpclient-cache/src/main/java-deprecated/org/apache/http/impl/client/cache/CachingHttpClient.java?rev=1788704&r1=1788703&r2=1788704&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.6.x/httpclient-cache/src/main/java-deprecated/org/apache/http/impl/client/cache/CachingHttpClient.java
(original)
+++ httpcomponents/httpclient/branches/4.6.x/httpclient-cache/src/main/java-deprecated/org/apache/http/impl/client/cache/CachingHttpClient.java
Sun Mar 26 02:09:40 2017
@@ -339,38 +339,45 @@ public class CachingHttpClient implement
         return cacheUpdates.get();
     }
 
+    @Override
     public HttpResponse execute(final HttpHost target, final HttpRequest request) throws
IOException {
         final HttpContext defaultContext = null;
         return execute(target, request, defaultContext);
     }
 
+    @Override
     public <T> T execute(final HttpHost target, final HttpRequest request,
                          final ResponseHandler<? extends T> responseHandler) throws
IOException {
         return execute(target, request, responseHandler, null);
     }
 
+    @Override
     public <T> T execute(final HttpHost target, final HttpRequest request,
                          final ResponseHandler<? extends T> responseHandler, final
HttpContext context) throws IOException {
         final HttpResponse resp = execute(target, request, context);
         return handleAndConsume(responseHandler,resp);
     }
 
+    @Override
     public HttpResponse execute(final HttpUriRequest request) throws IOException {
         final HttpContext context = null;
         return execute(request, context);
     }
 
+    @Override
     public HttpResponse execute(final HttpUriRequest request, final HttpContext context)
throws IOException {
         final URI uri = request.getURI();
         final HttpHost httpHost = new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme());
         return execute(httpHost, request, context);
     }
 
+    @Override
     public <T> T execute(final HttpUriRequest request, final ResponseHandler<? extends
T> responseHandler)
             throws IOException {
         return execute(request, responseHandler, null);
     }
 
+    @Override
     public <T> T execute(final HttpUriRequest request, final ResponseHandler<? extends
T> responseHandler,
                          final HttpContext context) throws IOException {
         final HttpResponse resp = execute(request, context);
@@ -408,14 +415,17 @@ public class CachingHttpClient implement
         return result;
     }
 
+    @Override
     public ClientConnectionManager getConnectionManager() {
         return backend.getConnectionManager();
     }
 
+    @Override
     public HttpParams getParams() {
         return backend.getParams();
     }
 
+    @Override
     public HttpResponse execute(final HttpHost target, final HttpRequest originalRequest,
final HttpContext context)
             throws IOException {
 
@@ -1138,6 +1148,7 @@ public class CachingHttpClient implement
             this.identifier = identifier;
         }
 
+        @Override
         public void run() {
             try {
                 cachingClient.revalidateCacheEntry(target, request, context, cacheEntry);

Modified: httpcomponents/httpclient/branches/4.6.x/httpclient-osgi/src/main/java/org/apache/http/osgi/impl/WeakList.java
URL: http://svn.apache.org/viewvc/httpcomponents/httpclient/branches/4.6.x/httpclient-osgi/src/main/java/org/apache/http/osgi/impl/WeakList.java?rev=1788704&r1=1788703&r2=1788704&view=diff
==============================================================================
--- httpcomponents/httpclient/branches/4.6.x/httpclient-osgi/src/main/java/org/apache/http/osgi/impl/WeakList.java
(original)
+++ httpcomponents/httpclient/branches/4.6.x/httpclient-osgi/src/main/java/org/apache/http/osgi/impl/WeakList.java
Sun Mar 26 02:09:40 2017
@@ -93,10 +93,12 @@ class WeakList<T> extends AbstractList<T
             fetchNext();
         }
 
+        @Override
         public boolean hasNext() {
             return next != null;
         }
 
+        @Override
         public T next() {
             if (next != null) {
                 final T result = next.get();
@@ -119,6 +121,7 @@ class WeakList<T> extends AbstractList<T
             next = null;
         }
 
+        @Override
         public void remove() {
             throw new UnsupportedOperationException();
         }



Mime
View raw message