We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49e2632 commit fa4c16dCopy full SHA for fa4c16d
util/src/main/java/io/kubernetes/client/util/Preconditions.java
@@ -36,7 +36,7 @@ private Preconditions() {
36
* @throws IllegalArgumentException if predicate returns true
37
*/
38
public static <T> T precondition(
39
- T validate, Predicate<T> predicate, Supplier<String> errorSupplier) {
+ T validate, Predicate<? super T> predicate, Supplier<String> errorSupplier) {
40
if (predicate.test(validate)) {
41
throw new IllegalArgumentException(errorSupplier.get());
42
}
0 commit comments