Add missing @Override annotations.

This commit is contained in:
Gary Gregory 2018-08-05 11:40:07 -06:00
parent c3bdc8913f
commit 769e9fab3f
6 changed files with 10 additions and 0 deletions

View File

@ -48,6 +48,7 @@ public final class HttpAsyncCacheStorageAdaptor implements HttpAsyncCacheStorage
this.cacheStorage = Args.notNull(cacheStorage, "Cache strorage");
}
@Override
public Cancellable putEntry(final String key, final HttpCacheEntry entry, final FutureCallback<Boolean> callback) {
Args.notEmpty(key, "Key");
Args.notNull(entry, "Cache ehtry");
@ -61,6 +62,7 @@ public final class HttpAsyncCacheStorageAdaptor implements HttpAsyncCacheStorage
return Operations.nonCancellable();
}
@Override
public Cancellable getEntry(final String key, final FutureCallback<HttpCacheEntry> callback) {
Args.notEmpty(key, "Key");
Args.notNull(callback, "Callback");
@ -73,6 +75,7 @@ public final class HttpAsyncCacheStorageAdaptor implements HttpAsyncCacheStorage
return Operations.nonCancellable();
}
@Override
public Cancellable removeEntry(final String key, final FutureCallback<Boolean> callback) {
Args.notEmpty(key, "Key");
Args.notNull(callback, "Callback");
@ -85,6 +88,7 @@ public final class HttpAsyncCacheStorageAdaptor implements HttpAsyncCacheStorage
return Operations.nonCancellable();
}
@Override
public Cancellable updateEntry(
final String key, final HttpCacheCASOperation casOperation, final FutureCallback<Boolean> callback) {
Args.notEmpty(key, "Key");
@ -99,6 +103,7 @@ public final class HttpAsyncCacheStorageAdaptor implements HttpAsyncCacheStorage
return Operations.nonCancellable();
}
@Override
public Cancellable getEntries(final Collection<String> keys, final FutureCallback<Map<String, HttpCacheEntry>> callback) {
Args.notNull(keys, "Key");
Args.notNull(callback, "Callback");

View File

@ -42,6 +42,7 @@ public class BasicTestAuthenticator implements Authenticator {
this.realm = realm;
}
@Override
public boolean authenticate(final URIAuthority authority, final String requestUri, final String credentials) {
return Objects.equals(userToken, credentials);
}

View File

@ -169,6 +169,7 @@ public class TestHttp1AsyncRedirects extends AbstractHttpAsyncRedirectsTest<Clos
}
@Override
@Test
public void testBasicRedirect300() throws Exception {
server.register("*", new Supplier<AsyncServerExchangeHandler>() {

View File

@ -100,6 +100,7 @@ public class TestClientAuthentication extends LocalServerTestBase {
});
}
@Override
public HttpHost start() throws IOException {
return start(new BasicTestAuthenticator("test:test", "test realm"));
}

View File

@ -36,6 +36,7 @@ public final class RequestCopier implements MessageCopier<HttpRequest> {
public static final RequestCopier INSTANCE = new RequestCopier();
@Override
public HttpRequest copy(final HttpRequest original) {
if (original == null) {
return null;

View File

@ -37,6 +37,7 @@ public final class ClassicRequestCopier implements MessageCopier<ClassicHttpRequ
public static final ClassicRequestCopier INSTANCE = new ClassicRequestCopier();
@Override
public ClassicHttpRequest copy(final ClassicHttpRequest original) {
if (original == null) {
return null;