You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.2 KiB
39 lines
1.2 KiB
--- 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));
|
|
}
|
|
|
|
/**
|