mirror of
https://github.com/apache/jclouds.git
synced 2025-02-23 10:58:40 +00:00
Merge pull request #1243 from maginatics/remove-unneeded-predicate
Remove unneeded Predicate
This commit is contained in:
commit
afc2723fca
@ -109,11 +109,7 @@ public class InputParamValidator {
|
||||
* arguments that correspond to the array of annotations
|
||||
*/
|
||||
private void performParameterValidation(Invocation invocation) {
|
||||
for (Parameter param : filter(invocation.getInvokable().getParameters(), new Predicate<Parameter>() {
|
||||
public boolean apply(Parameter in) {
|
||||
return in.isAnnotationPresent(ParamValidators.class);
|
||||
}
|
||||
})) {
|
||||
for (Parameter param : invocation.getInvokable().getParameters()) {
|
||||
ParamValidators annotation = param.getAnnotation(ParamValidators.class);
|
||||
if (annotation == null)
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user