mirror of https://github.com/apache/jclouds.git
Issue 140: fixed to work when varargs are present
This commit is contained in:
parent
44a744de9e
commit
752ab1c136
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue