Avoid ConstantConditions warnings suppression (plus related polishing)

Issue: SPR-15756
This commit is contained in:
Juergen Hoeller
2018-05-29 21:47:10 +02:00
parent 8c30b8e628
commit 8593fec22c
12 changed files with 78 additions and 92 deletions

View File

@@ -94,7 +94,6 @@ public class ExceptionHandlerExceptionResolverTests {
@Test
@SuppressWarnings("ConstantConditions")
public void nullHandler() {
Object handler = null;
this.resolver.afterPropertiesSet();
@@ -103,7 +102,7 @@ public class ExceptionHandlerExceptionResolverTests {
}
@Test
public void setCustomArgumentResolvers() throws Exception {
public void setCustomArgumentResolvers() {
HandlerMethodArgumentResolver resolver = new ServletRequestMethodArgumentResolver();
this.resolver.setCustomArgumentResolvers(Collections.singletonList(resolver));
this.resolver.afterPropertiesSet();
@@ -113,7 +112,7 @@ public class ExceptionHandlerExceptionResolverTests {
}
@Test
public void setArgumentResolvers() throws Exception {
public void setArgumentResolvers() {
HandlerMethodArgumentResolver resolver = new ServletRequestMethodArgumentResolver();
this.resolver.setArgumentResolvers(Collections.singletonList(resolver));
this.resolver.afterPropertiesSet();