Fix compiler warnings
This commit is contained in:
parent
eb9fe235fe
commit
8b99c51969
|
@ -80,7 +80,7 @@ public class RequestHeaderMethodArgumentResolverTests {
|
||||||
this.resolver = new RequestHeaderMethodArgumentResolver(conversionService, context.getBeanFactory());
|
this.resolver = new RequestHeaderMethodArgumentResolver(conversionService, context.getBeanFactory());
|
||||||
|
|
||||||
@SuppressWarnings("ConfusingArgumentToVarargsMethod")
|
@SuppressWarnings("ConfusingArgumentToVarargsMethod")
|
||||||
Method method = ReflectionUtils.findMethod(getClass(), "params", null);
|
Method method = ReflectionUtils.findMethod(getClass(), "params", (Class<?>[]) null);
|
||||||
this.paramNamedDefaultValueStringHeader = new SynthesizingMethodParameter(method, 0);
|
this.paramNamedDefaultValueStringHeader = new SynthesizingMethodParameter(method, 0);
|
||||||
this.paramNamedValueStringArray = new SynthesizingMethodParameter(method, 1);
|
this.paramNamedValueStringArray = new SynthesizingMethodParameter(method, 1);
|
||||||
this.paramSystemProperty = new SynthesizingMethodParameter(method, 2);
|
this.paramSystemProperty = new SynthesizingMethodParameter(method, 2);
|
||||||
|
@ -190,6 +190,7 @@ public class RequestHeaderMethodArgumentResolverTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@SuppressWarnings("deprecation")
|
||||||
public void dateConversion() throws Exception {
|
public void dateConversion() throws Exception {
|
||||||
String rfc1123val = "Thu, 21 Apr 2016 17:11:08 +0100";
|
String rfc1123val = "Thu, 21 Apr 2016 17:11:08 +0100";
|
||||||
this.exchange.getRequest().getHeaders().add("name", rfc1123val);
|
this.exchange.getRequest().getHeaders().add("name", rfc1123val);
|
||||||
|
|
Loading…
Reference in New Issue