Use instanceof instead of Class#isInstance where feasible
Closes gh-25446
This commit is contained in:
@@ -69,7 +69,7 @@ public class HandlerResultMatchers {
|
||||
assertNotNull("No handler", handler);
|
||||
if (handler != null) {
|
||||
Class<?> actual = handler.getClass();
|
||||
if (HandlerMethod.class.isInstance(handler)) {
|
||||
if (handler instanceof HandlerMethod) {
|
||||
actual = ((HandlerMethod) handler).getBeanType();
|
||||
}
|
||||
assertEquals("Handler type", type, ClassUtils.getUserClass(actual));
|
||||
|
||||
Reference in New Issue
Block a user