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:
parent
c7c70ec451
commit
54667c0a43
|
@ -139,6 +139,7 @@ class SizeLimitedResponseReader {
|
|||
new Class<?>[] { CloseableHttpResponse.class },
|
||||
new ResponseProxyHandler(reconstructed) {
|
||||
|
||||
@Override
|
||||
public void close() throws IOException {
|
||||
response.close();
|
||||
}
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue