Commit 84e2be01 authored by calocedre TAC's avatar calocedre TAC
Browse files

simpler allFieldsAreWildcards implementation

parent 6b0862e3
......@@ -25,9 +25,7 @@ public class VenueTypeValidator implements ConstraintValidator<ValidateWildcards
}
private boolean allFieldsAreWildcards(ScoringRule scoringRule) {
return scoringRule.getVenueType() == ScoringRule.WILDCARD_VALUE &&
scoringRule.getVenueCategory1() == ScoringRule.WILDCARD_VALUE &&
scoringRule.getVenueCategory2() == ScoringRule.WILDCARD_VALUE;
return scoringRule.isDefaultRule();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment