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