Remove unneeded Predicate

Inspired by:
https://code.google.com/p/guava-libraries/wiki/FunctionalExplained#Caveats
This commit is contained in:
Andrew Gaul 2013-01-24 16:50:45 -08:00
parent cc1d553cbd
commit fb93f774aa
1 changed files with 1 additions and 5 deletions

View File

@ -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;