Add missing '@Override' annotations.

git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1558061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory 2014-01-14 14:53:23 +00:00
parent c7c70ec451
commit 54667c0a43
3 changed files with 7 additions and 0 deletions

View File

@ -139,6 +139,7 @@ class SizeLimitedResponseReader {
new Class<?>[] { CloseableHttpResponse.class },
new ResponseProxyHandler(reconstructed) {
@Override
public void close() throws IOException {
response.close();
}

View File

@ -87,6 +87,7 @@ public class TestCachingExec extends TestCachingExecChain {
private Date requestDate;
private Date responseDate;
@Override
@Before
public void setUp() {
super.setUp();
@ -129,6 +130,7 @@ public class TestCachingExec extends TestCachingExecChain {
return impl = new CachingExec(backend, cache, config);
}
@Override
protected void replayMocks() {
super.replayMocks();
replay(mockBackendResponse);
@ -137,6 +139,7 @@ public class TestCachingExec extends TestCachingExecChain {
}
}
@Override
protected void verifyMocks() {
super.verifyMocks();
verify(mockBackendResponse);
@ -320,11 +323,13 @@ public class TestCachingExec extends TestCachingExecChain {
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) {

View File

@ -146,6 +146,7 @@ public class TestSizeLimitedResponseReader {
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);
}