Merge pull request #1243 from maginatics/remove-unneeded-predicate

Remove unneeded Predicate
This commit is contained in:
Adrian Cole 2013-01-24 18:09:33 -08:00
commit afc2723fca

View File

@ -109,11 +109,7 @@ public class InputParamValidator {
* arguments that correspond to the array of annotations * arguments that correspond to the array of annotations
*/ */
private void performParameterValidation(Invocation invocation) { private void performParameterValidation(Invocation invocation) {
for (Parameter param : filter(invocation.getInvokable().getParameters(), new Predicate<Parameter>() { for (Parameter param : invocation.getInvokable().getParameters()) {
public boolean apply(Parameter in) {
return in.isAnnotationPresent(ParamValidators.class);
}
})) {
ParamValidators annotation = param.getAnnotation(ParamValidators.class); ParamValidators annotation = param.getAnnotation(ParamValidators.class);
if (annotation == null) if (annotation == null)
continue; continue;