Skip to content

Commit 703ffc8

Browse files
terminalsinjvalkeal
authored andcommitted
Fix ShellMethod not using context validator
(cherry picked from commit 23194d0) - Backport #493 - Fixes #496
1 parent f826f29 commit 703ffc8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spring-shell-core/src/main/java/org/springframework/shell/command/invocation/InvocableShellMethod.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,6 @@ protected Object doInvoke(Object... args) throws Exception {
298298
try {
299299
if (validator != null) {
300300
Method bridgedMethod = getBridgedMethod();
301-
Validator validator = Utils.defaultValidator();
302301
Set<ConstraintViolation<Object>> constraintViolations = validator.forExecutables()
303302
.validateParameters(getBean(), bridgedMethod, args);
304303
if (constraintViolations.size() > 0) {

0 commit comments

Comments
 (0)