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();
|
return cacheUpdates.get();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HttpResponse execute(final HttpHost target, final HttpRequest request) throws IOException {
|
public HttpResponse execute(final HttpHost target, final HttpRequest request) throws IOException {
|
||||||
final HttpContext defaultContext = null;
|
final HttpContext defaultContext = null;
|
||||||
return execute(target, request, defaultContext);
|
return execute(target, request, defaultContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public <T> T execute(final HttpHost target, final HttpRequest request,
|
public <T> T execute(final HttpHost target, final HttpRequest request,
|
||||||
final ResponseHandler<? extends T> responseHandler) throws IOException {
|
final ResponseHandler<? extends T> responseHandler) throws IOException {
|
||||||
return execute(target, request, responseHandler, null);
|
return execute(target, request, responseHandler, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public <T> T execute(final HttpHost target, final HttpRequest request,
|
public <T> T execute(final HttpHost target, final HttpRequest request,
|
||||||
final ResponseHandler<? extends T> responseHandler, final HttpContext context) throws IOException {
|
final ResponseHandler<? extends T> responseHandler, final HttpContext context) throws IOException {
|
||||||
final HttpResponse resp = execute(target, request, context);
|
final HttpResponse resp = execute(target, request, context);
|
||||||
return handleAndConsume(responseHandler,resp);
|
return handleAndConsume(responseHandler,resp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HttpResponse execute(final HttpUriRequest request) throws IOException {
|
public HttpResponse execute(final HttpUriRequest request) throws IOException {
|
||||||
final HttpContext context = null;
|
final HttpContext context = null;
|
||||||
return execute(request, context);
|
return execute(request, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HttpResponse execute(final HttpUriRequest request, final HttpContext context) throws IOException {
|
public HttpResponse execute(final HttpUriRequest request, final HttpContext context) throws IOException {
|
||||||
final URI uri = request.getURI();
|
final URI uri = request.getURI();
|
||||||
final HttpHost httpHost = new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme());
|
final HttpHost httpHost = new HttpHost(uri.getHost(), uri.getPort(), uri.getScheme());
|
||||||
return execute(httpHost, request, context);
|
return execute(httpHost, request, context);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public <T> T execute(final HttpUriRequest request, final ResponseHandler<? extends T> responseHandler)
|
public <T> T execute(final HttpUriRequest request, final ResponseHandler<? extends T> responseHandler)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
return execute(request, responseHandler, null);
|
return execute(request, responseHandler, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public <T> T execute(final HttpUriRequest request, final ResponseHandler<? extends T> responseHandler,
|
public <T> T execute(final HttpUriRequest request, final ResponseHandler<? extends T> responseHandler,
|
||||||
final HttpContext context) throws IOException {
|
final HttpContext context) throws IOException {
|
||||||
final HttpResponse resp = execute(request, context);
|
final HttpResponse resp = execute(request, context);
|
||||||
|
@ -408,14 +415,17 @@ public class CachingHttpClient implements HttpClient {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public ClientConnectionManager getConnectionManager() {
|
public ClientConnectionManager getConnectionManager() {
|
||||||
return backend.getConnectionManager();
|
return backend.getConnectionManager();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HttpParams getParams() {
|
public HttpParams getParams() {
|
||||||
return backend.getParams();
|
return backend.getParams();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public HttpResponse execute(final HttpHost target, final HttpRequest originalRequest, final HttpContext context)
|
public HttpResponse execute(final HttpHost target, final HttpRequest originalRequest, final HttpContext context)
|
||||||
throws IOException {
|
throws IOException {
|
||||||
|
|
||||||
|
@ -1138,6 +1148,7 @@ public class CachingHttpClient implements HttpClient {
|
||||||
this.identifier = identifier;
|
this.identifier = identifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
try {
|
try {
|
||||||
cachingClient.revalidateCacheEntry(target, request, context, cacheEntry);
|
cachingClient.revalidateCacheEntry(target, request, context, cacheEntry);
|
||||||
|
|
|
@ -93,10 +93,12 @@ class WeakList<T> extends AbstractList<T> {
|
||||||
fetchNext();
|
fetchNext();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public boolean hasNext() {
|
public boolean hasNext() {
|
||||||
return next != null;
|
return next != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public T next() {
|
public T next() {
|
||||||
if (next != null) {
|
if (next != null) {
|
||||||
final T result = next.get();
|
final T result = next.get();
|
||||||
|
@ -119,6 +121,7 @@ class WeakList<T> extends AbstractList<T> {
|
||||||
next = null;
|
next = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
public void remove() {
|
public void remove() {
|
||||||
throw new UnsupportedOperationException();
|
throw new UnsupportedOperationException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue