Skip to content

Commit

Permalink
enable list matcher to be used with Check class (#3182)
Browse files Browse the repository at this point in the history
  • Loading branch information
andre-becker authored Jul 17, 2023
1 parent 061f16f commit a46a7df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static ConditionalPerformable whether(Question<Boolean> condition) {
return new ConditionalPerformableOnQuestion(condition);
}

public static <T> ConditionalPerformable whether(Question<T> question, Matcher<T> matcher) {
public static <T> ConditionalPerformable whether(Question<? extends T> question, Matcher<T> matcher) {
Question<Boolean> condition = actor -> matcher.matches(question.answeredBy(actor));

return new ConditionalPerformableOnQuestion(condition);
Expand Down

0 comments on commit a46a7df

Please sign in to comment.