Commit 24cc5d56 authored by Andy Wilkinson's avatar Andy Wilkinson

Give javac's type inferencing a helping hand

parent 22e456a1
...@@ -42,7 +42,7 @@ public abstract class AbstractEndpointHandlerMappingTests { ...@@ -42,7 +42,7 @@ public abstract class AbstractEndpointHandlerMappingTests {
TestMvcEndpoint endpoint = new TestMvcEndpoint(new TestEndpoint("a")); TestMvcEndpoint endpoint = new TestMvcEndpoint(new TestEndpoint("a"));
TestActionEndpoint other = new TestActionEndpoint(new TestEndpoint("b")); TestActionEndpoint other = new TestActionEndpoint(new TestEndpoint("b"));
AbstractEndpointHandlerMapping<?> mapping = new TestEndpointHandlerMapping<MvcEndpoint>( AbstractEndpointHandlerMapping<?> mapping = new TestEndpointHandlerMapping<MvcEndpoint>(
Arrays.asList(endpoint, other)); Arrays.<MvcEndpoint>asList(endpoint, other));
mapping.setApplicationContext(this.context); mapping.setApplicationContext(this.context);
mapping.afterPropertiesSet(); mapping.afterPropertiesSet();
assertThat(mapping.getHandlerMethods()).hasSize(1); assertThat(mapping.getHandlerMethods()).hasSize(1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment