mirror of https://github.com/apache/jclouds.git
Remove unneeded Predicate
Inspired by: https://code.google.com/p/guava-libraries/wiki/FunctionalExplained#Caveats
This commit is contained in:
parent
cc1d553cbd
commit
fb93f774aa
|
@ -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…
Reference in New Issue