mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Add missing @Override annotations
... and suppress "serial" warnings
This commit is contained in:
@@ -642,7 +642,7 @@ public class MockHttpServletResponse implements HttpServletResponse {
|
||||
sendRedirect(url, HttpServletResponse.SC_MOVED_TEMPORARILY, true);
|
||||
}
|
||||
|
||||
// @Override - on Servlet 6.1
|
||||
@Override
|
||||
public void sendRedirect(String url, int sc, boolean clearBuffer) throws IOException {
|
||||
Assert.state(!isCommitted(), "Cannot send redirect - response is already committed");
|
||||
Assert.notNull(url, "Redirect URL must not be null");
|
||||
|
||||
+1
@@ -173,6 +173,7 @@ class DefaultRestTestClientBuilder<B extends RestTestClient.Builder<B>> implemen
|
||||
this.mockMvcBuilder = mockMvcBuilder;
|
||||
}
|
||||
|
||||
@Override
|
||||
public <T extends S> T configureServer(Consumer<M> consumer) {
|
||||
consumer.accept(this.mockMvcBuilder);
|
||||
return self();
|
||||
|
||||
Reference in New Issue
Block a user