mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
Closes: https://bugs.gentoo.org/642534 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net> Closes: https://github.com/gentoo/gentoo/pull/20019 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
39 lines
1.2 KiB
Diff
39 lines
1.2 KiB
Diff
--- a/hamcrest-core/src/main/java/org/hamcrest/core/AllOf.java
|
|
+++ b/hamcrest-core/src/main/java/org/hamcrest/core/AllOf.java
|
|
@@ -1,6 +1,7 @@
|
|
package org.hamcrest.core;
|
|
|
|
import java.util.Arrays;
|
|
+import java.util.List;
|
|
|
|
import org.hamcrest.Description;
|
|
import org.hamcrest.Factory;
|
|
@@ -32,7 +33,7 @@ public class AllOf<T> extends ShortcutCombination<T> {
|
|
*/
|
|
@Factory
|
|
public static <T> Matcher<T> allOf(Matcher<? super T>... matchers) {
|
|
- return allOf(Arrays.asList(matchers));
|
|
+ return allOf((List<Matcher<? super T>>) Arrays.asList(matchers));
|
|
}
|
|
|
|
/**
|
|
--- a/hamcrest-core/src/main/java/org/hamcrest/core/AnyOf.java
|
|
+++ b/hamcrest-core/src/main/java/org/hamcrest/core/AnyOf.java
|
|
@@ -1,6 +1,7 @@
|
|
package org.hamcrest.core;
|
|
|
|
import java.util.Arrays;
|
|
+import java.util.List;
|
|
|
|
import org.hamcrest.Description;
|
|
import org.hamcrest.Factory;
|
|
@@ -33,7 +34,7 @@ public class AnyOf<T> extends ShortcutCombination<T> {
|
|
*/
|
|
@Factory
|
|
public static <T> Matcher<T> anyOf(Matcher<? super T>... matchers) {
|
|
- return anyOf(Arrays.asList(matchers));
|
|
+ return anyOf((List<Matcher<? super T>>) Arrays.asList(matchers));
|
|
}
|
|
|
|
/**
|