Skip to content

Commit

Permalink
Use closures to reduce code duplication
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Oct 5, 2016
1 parent 703b5e4 commit bb9fc97
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -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());
}
});

Expand Down
Expand Up @@ -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());
}
});

Expand Down

0 comments on commit bb9fc97

Please sign in to comment.