Permalink
Browse files

Use closures to reduce code duplication

  • Loading branch information...
benfortuna committed Oct 5, 2016
1 parent 703b5e4 commit bb9fc975e91f29990af7218f5d08b9d53803d39d
@@ -126,7 +126,7 @@ public final void validate() throws ValidationException {
Parameter.DIR, Parameter.LANGUAGE), new Closure<String>() {
@Override
public void execute(String input) {
PropertyValidator.getInstance().assertOneOrLess(input, getParameters());
ParameterValidator.getInstance().assertOneOrLess(input, getParameters());
}
});
@@ -196,7 +196,7 @@ public final void validate() throws ValidationException {
Parameter.LANGUAGE), new Closure<String>() {
@Override
public void execute(String input) {
PropertyValidator.getInstance().assertOneOrLess(input, getParameters());
ParameterValidator.getInstance().assertOneOrLess(input, getParameters());
}
});

0 comments on commit bb9fc97

Please sign in to comment.