提交 e2c7653d 编写于 作者: J Juergen Hoeller

Correct parameter index boundary in exception message

Issue: SPR-14466
上级 e431624e
......@@ -668,7 +668,7 @@ public class MethodParameter {
private static int validateIndex(Executable executable, int parameterIndex) {
int count = executable.getParameterCount();
Assert.isTrue(parameterIndex < count, () -> "Parameter index needs to be between 0 and " + (count - 1));
Assert.isTrue(parameterIndex < count, () -> "Parameter index needs to be between -1 and " + (count - 1));
return parameterIndex;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册