Issue 140: fixed to work when varargs are present

This commit is contained in:
Adrian Cole 2010-02-09 13:16:24 -08:00
parent 44a744de9e
commit 752ab1c136
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ public class InputParamValidator {
*/
private boolean passesParameterValidation(Annotation[][] annotations, Object... args) {
boolean allPreducatesTrue = true;
for (int currentParameterIndex = 0; currentParameterIndex < args.length; currentParameterIndex++) {
for (int currentParameterIndex = 0; currentParameterIndex < annotations.length; currentParameterIndex++) {
ParamValidators annotation = findParamValidatorsAnnotationOrReturnNull(annotations[currentParameterIndex]);
if (annotation == null)
continue;