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 Class<?>[] { CloseableHttpResponse.class },
new ResponseProxyHandler(reconstructed) { new ResponseProxyHandler(reconstructed) {
@Override
public void close() throws IOException { public void close() throws IOException {
response.close(); response.close();
} }

View File

@ -87,6 +87,7 @@ public class TestCachingExec extends TestCachingExecChain {
private Date requestDate; private Date requestDate;
private Date responseDate; private Date responseDate;
@Override
@Before @Before
public void setUp() { public void setUp() {
super.setUp(); super.setUp();
@ -129,6 +130,7 @@ public class TestCachingExec extends TestCachingExecChain {
return impl = new CachingExec(backend, cache, config); return impl = new CachingExec(backend, cache, config);
} }
@Override
protected void replayMocks() { protected void replayMocks() {
super.replayMocks(); super.replayMocks();
replay(mockBackendResponse); replay(mockBackendResponse);
@ -137,6 +139,7 @@ public class TestCachingExec extends TestCachingExecChain {
} }
} }
@Override
protected void verifyMocks() { protected void verifyMocks() {
super.verifyMocks(); super.verifyMocks();
verify(mockBackendResponse); verify(mockBackendResponse);
@ -320,11 +323,13 @@ public class TestCachingExec extends TestCachingExecChain {
resp1.setEntity(new InputStreamEntity(new InputStream() { resp1.setEntity(new InputStreamEntity(new InputStream() {
private Throwable closed; private Throwable closed;
@Override
public void close() throws IOException { public void close() throws IOException {
closed = new Throwable(); closed = new Throwable();
super.close(); super.close();
} }
@Override
public int read() throws IOException { public int read() throws IOException {
Thread.yield(); Thread.yield();
if (closed != null) { if (closed != null) {

View File

@ -146,6 +146,7 @@ public class TestSizeLimitedResponseReader {
new Class<?>[] { CloseableHttpResponse.class }, new Class<?>[] { CloseableHttpResponse.class },
new ResponseProxyHandler(new BasicHttpResponse( new ResponseProxyHandler(new BasicHttpResponse(
HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK")) { HttpVersion.HTTP_1_1, HttpStatus.SC_OK, "OK")) {
@Override
public void close() throws IOException { public void close() throws IOException {
closed.set(true); closed.set(true);
} }