diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-05 22:25:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-05 22:25:21 +0100 |
commit | 0234994edb2122d4508c5a07122e774bcab9195b (patch) | |
tree | 80baac10dd569694ca0dbca4232399a180870839 /dev-java/hamcrest-library/files/hamcrest-library-1.3-r3-java-11.patch | |
parent | 4aec9255c99411cb07138353f1bdda61fe0b501d (diff) |
gentoo auto-resync : 05:09:2022 - 22:25:20
Diffstat (limited to 'dev-java/hamcrest-library/files/hamcrest-library-1.3-r3-java-11.patch')
-rw-r--r-- | dev-java/hamcrest-library/files/hamcrest-library-1.3-r3-java-11.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/hamcrest-library/files/hamcrest-library-1.3-r3-java-11.patch b/dev-java/hamcrest-library/files/hamcrest-library-1.3-r3-java-11.patch new file mode 100644 index 000000000000..5e1103d3fbfe --- /dev/null +++ b/dev-java/hamcrest-library/files/hamcrest-library-1.3-r3-java-11.patch @@ -0,0 +1,44 @@ +--- a/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInAnyOrder.java ++++ b/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInAnyOrder.java +@@ -122,7 +122,7 @@ public class IsIterableContainingInAnyOrder<T> extends TypeSafeDiagnosingMatcher + */ + @Factory + public static <T> Matcher<Iterable<? extends T>> containsInAnyOrder(Matcher<? super T>... itemMatchers) { +- return containsInAnyOrder(Arrays.asList(itemMatchers)); ++ return containsInAnyOrder((List<Matcher<? super T>>) Arrays.asList(itemMatchers)); + } + + /** +--- a/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInOrder.java ++++ b/hamcrest-library/src/main/java/org/hamcrest/collection/IsIterableContainingInOrder.java +@@ -138,7 +138,7 @@ public class IsIterableContainingInOrder<E> extends TypeSafeDiagnosingMatcher<It + */ + @Factory + public static <E> Matcher<Iterable<? extends E>> contains(Matcher<? super E>... itemMatchers) { +- return contains(asList(itemMatchers)); ++ return contains((List<Matcher<? super E>>) asList(itemMatchers)); + } + + /** +--- a/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInAnyOrder.java ++++ b/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInAnyOrder.java +@@ -55,7 +55,7 @@ public class IsArrayContainingInAnyOrder<E> extends TypeSafeMatcher<E[]> { + */ + @Factory + public static <E> Matcher<E[]> arrayContainingInAnyOrder(Matcher<? super E>... itemMatchers) { +- return arrayContainingInAnyOrder(Arrays.asList(itemMatchers)); ++ return arrayContainingInAnyOrder((List<Matcher<? super E>>) Arrays.asList(itemMatchers)); + } + + /** +--- a/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInOrder.java ++++ b/hamcrest-library/src/main/java/org/hamcrest/collection/IsArrayContainingInOrder.java +@@ -69,7 +69,7 @@ public class IsArrayContainingInOrder<E> extends TypeSafeMatcher<E[]> { + */ + @Factory + public static <E> Matcher<E[]> arrayContaining(Matcher<? super E>... itemMatchers) { +- return arrayContaining(asList(itemMatchers)); ++ return arrayContaining((List<Matcher<? super E>>) asList(itemMatchers)); + } + + /** |