|
|
|
|
@ -668,7 +668,7 @@ public class MethodParameter {
@@ -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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|