Clean up warnings in build
This commit is contained in:
parent
f3c8102882
commit
9eae0ba50e
|
|
@ -83,6 +83,7 @@ class AspectProxyFactoryTests {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
void testSerializable() throws Exception {
|
||||
AspectJProxyFactory proxyFactory = new AspectJProxyFactory(new TestBean());
|
||||
proxyFactory.addAspect(LoggingAspectOnVarargs.class);
|
||||
|
|
|
|||
|
|
@ -47,6 +47,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
|||
* @author Arjen Poutsma
|
||||
* @author Sam Brannen
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
class ServerHttpsRequestIntegrationTests {
|
||||
|
||||
private final HttpServer server = new ReactorHttpsServer();
|
||||
|
|
|
|||
|
|
@ -223,6 +223,7 @@ class RouterFunctionsTests {
|
|||
public HttpStatus statusCode() {
|
||||
return HttpStatus.OK;
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public int rawStatusCode() {
|
||||
return 200;
|
||||
|
|
@ -261,6 +262,7 @@ class RouterFunctionsTests {
|
|||
public HttpStatus statusCode() {
|
||||
return HttpStatus.OK;
|
||||
}
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public int rawStatusCode() {
|
||||
return 200;
|
||||
|
|
|
|||
|
|
@ -3052,6 +3052,7 @@ class ServletAnnotationControllerHandlerMethodTests extends AbstractServletHandl
|
|||
|
||||
static class TestViewResolver implements ViewResolver {
|
||||
|
||||
@SuppressWarnings("deprecation")
|
||||
@Override
|
||||
public View resolveViewName(final String viewName, Locale locale) throws Exception {
|
||||
return (model, request, response) -> {
|
||||
|
|
@ -3073,6 +3074,7 @@ class ServletAnnotationControllerHandlerMethodTests extends AbstractServletHandl
|
|||
boolean condition = model.get(BindingResult.MODEL_KEY_PREFIX + "ITestBean") instanceof Errors;
|
||||
assertThat(condition).isTrue();
|
||||
}
|
||||
@SuppressWarnings("unchecked")
|
||||
List<TestBean> testBeans = (List<TestBean>) model.get("testBeanList");
|
||||
if (errors.hasFieldErrors("age")) {
|
||||
response.getWriter()
|
||||
|
|
|
|||
Loading…
Reference in New Issue