Give javac's type inferencing a helping hand

This commit is contained in:
Andy Wilkinson 2016-11-15 13:29:19 +00:00
parent 22e456a177
commit 24cc5d5644
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public abstract class AbstractEndpointHandlerMappingTests {
TestMvcEndpoint endpoint = new TestMvcEndpoint(new TestEndpoint("a"));
TestActionEndpoint other = new TestActionEndpoint(new TestEndpoint("b"));
AbstractEndpointHandlerMapping<?> mapping = new TestEndpointHandlerMapping<MvcEndpoint>(
Arrays.asList(endpoint, other));
Arrays.<MvcEndpoint>asList(endpoint, other));
mapping.setApplicationContext(this.context);
mapping.afterPropertiesSet();
assertThat(mapping.getHandlerMethods()).hasSize(1);