Skip to content

Commit fa4c16d

Browse files
committed
PECS in place
1 parent 49e2632 commit fa4c16d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

util/src/main/java/io/kubernetes/client/util/Preconditions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ private Preconditions() {
3636
* @throws IllegalArgumentException if predicate returns true
3737
*/
3838
public static <T> T precondition(
39-
T validate, Predicate<T> predicate, Supplier<String> errorSupplier) {
39+
T validate, Predicate<? super T> predicate, Supplier<String> errorSupplier) {
4040
if (predicate.test(validate)) {
4141
throw new IllegalArgumentException(errorSupplier.get());
4242
}

0 commit comments

Comments
 (0)