From 6f872dc30896e7e787757d1971542e46343ddf1c Mon Sep 17 00:00:00 2001 From: Eric Bottard Date: Thu, 7 Sep 2017 14:58:50 +0200 Subject: [PATCH] Change internal method name to avoid confusion with bean validation --- .../src/main/java/org/springframework/shell/Shell.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-shell-core/src/main/java/org/springframework/shell/Shell.java b/spring-shell-core/src/main/java/org/springframework/shell/Shell.java index 5245b8ac..b15ee3e6 100644 --- a/spring-shell-core/src/main/java/org/springframework/shell/Shell.java +++ b/spring-shell-core/src/main/java/org/springframework/shell/Shell.java @@ -83,7 +83,7 @@ public class Shell implements CommandRegistry { } methodTargets = registry.listCommands(); methodTargets.values() - .forEach(this::validateParameters); + .forEach(this::validateParameterResolvers); } @Autowired @@ -270,7 +270,7 @@ public class Shell implements CommandRegistry { * Verifies that we have at least one {@link ParameterResolver} that supports each of * the {@link MethodParameter}s in the method. */ - private void validateParameters(MethodTarget methodTarget) { + private void validateParameterResolvers(MethodTarget methodTarget) { Utils.createMethodParameters(methodTarget.getMethod()) .forEach(parameter -> { parameterResolvers.stream()