mirror of
https://github.com/apache/jclouds.git
synced 2025-02-26 04:27:13 +00:00
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…
x
Reference in New Issue
Block a user