From 4d1637a9b7f11745f84f12fe6146a4d384a93af0 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Wed, 8 May 2019 16:29:31 +0200 Subject: [PATCH] Avoid warnings in RequestMappingHandlerMappingTests --- .../method/annotation/RequestMappingHandlerMappingTests.java | 2 +- .../method/annotation/RequestMappingHandlerMappingTests.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMappingTests.java b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMappingTests.java index e31775eb6d..679d58b494 100644 --- a/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMappingTests.java +++ b/spring-webflux/src/test/java/org/springframework/web/reactive/result/method/annotation/RequestMappingHandlerMappingTests.java @@ -165,7 +165,7 @@ public class RequestMappingHandlerMappingTests { RequestMethod requestMethod) throws Exception { Class clazz = ComposedAnnotationController.class; - Method method = ClassUtils.getMethod(clazz, methodName, null); + Method method = ClassUtils.getMethod(clazz, methodName, (Class[]) null); RequestMappingInfo info = this.handlerMapping.getMappingForMethod(method, clazz); assertNotNull(info); diff --git a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java index b7da379c33..7512e1afbb 100644 --- a/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java +++ b/spring-webmvc/src/test/java/org/springframework/web/servlet/mvc/method/annotation/RequestMappingHandlerMappingTests.java @@ -222,7 +222,7 @@ public class RequestMappingHandlerMappingTests { RequestMethod requestMethod) throws Exception { Class clazz = ComposedAnnotationController.class; - Method method = ClassUtils.getMethod(clazz, methodName, null); + Method method = ClassUtils.getMethod(clazz, methodName, (Class[]) null); RequestMappingInfo info = this.handlerMapping.getMappingForMethod(method, clazz); assertNotNull(info);