Skip to content

Commit 4d1637a

Browse files
committed
Avoid warnings in RequestMappingHandlerMappingTests
1 parent d7320de commit 4d1637a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMappingTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ private RequestMappingInfo assertComposedAnnotationMapping(String methodName, St
165165
RequestMethod requestMethod) throws Exception {
166166

167167
Class<?> clazz = ComposedAnnotationController.class;
168-
Method method = ClassUtils.getMethod(clazz, methodName, null);
168+
Method method = ClassUtils.getMethod(clazz, methodName, (Class<?>[]) null);
169169
RequestMappingInfo info = this.handlerMapping.getMappingForMethod(method, clazz);
170170

171171
assertNotNull(info);

spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ private RequestMappingInfo assertComposedAnnotationMapping(String methodName, St
222222
RequestMethod requestMethod) throws Exception {
223223

224224
Class<?> clazz = ComposedAnnotationController.class;
225-
Method method = ClassUtils.getMethod(clazz, methodName, null);
225+
Method method = ClassUtils.getMethod(clazz, methodName, (Class<?>[]) null);
226226
RequestMappingInfo info = this.handlerMapping.getMappingForMethod(method, clazz);
227227

228228
assertNotNull(info);

0 commit comments

Comments
 (0)