Add missing '@Override' annotations.
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/branches/4.5.x@1788707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c5c10f5e9e
commit
4aa07e6c51
|
@ -339,38 +339,45 @@ public class CachingHttpClient implements HttpClient {
|
|||
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 implements HttpClient {
|
|||
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 implements HttpClient {
|
|||
this.identifier = identifier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
cachingClient.revalidateCacheEntry(target, request, context, cacheEntry);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue