Skip to content

Commit

Permalink
PECS in place
Browse files Browse the repository at this point in the history
  • Loading branch information
wind57 committed Jan 3, 2021
1 parent 49e2632 commit fa4c16d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -36,7 +36,7 @@ private Preconditions() {
* @throws IllegalArgumentException if predicate returns true
*/
public static <T> T precondition(
T validate, Predicate<T> predicate, Supplier<String> errorSupplier) {
T validate, Predicate<? super T> predicate, Supplier<String> errorSupplier) {
if (predicate.test(validate)) {
throw new IllegalArgumentException(errorSupplier.get());
}
Expand Down

0 comments on commit fa4c16d

Please sign in to comment.