Skip to content
Snippets Groups Projects
Commit 0185dbc7 authored by Emmanuel Bourg's avatar Emmanuel Bourg
Browse files

Fixed the build failure with Hamcrest 2.x

parent 2264212b
No related branches found
No related tags found
No related merge requests found
junit4 (4.13.2-2) UNRELEASED; urgency=medium
* Fixed the build failure with Hamcrest 2.x
* Removed the dependency on libhamcrest-java-doc
-- Emmanuel Bourg <ebourg@apache.org> Wed, 28 Sep 2022 09:09:25 +0200
......
Description: Fixes the compatibility with the version of Hamcrest in Debian
Author: Emmanuel Bourg <ebourg@apache.org>
Forwarded: not-needed
--- a/src/main/java/org/junit/matchers/JUnitMatchers.java
+++ b/src/main/java/org/junit/matchers/JUnitMatchers.java
@@ -57,7 +57,7 @@
*/
@Deprecated
public static <T> Matcher<Iterable<T>> everyItem(final Matcher<T> elementMatcher) {
- return CoreMatchers.everyItem(elementMatcher);
+ return CoreMatchers.everyItem((Matcher) elementMatcher);
}
/**
--- a/src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java
+++ b/src/test/java/org/junit/tests/experimental/theories/runner/WithDataPointMethod.java
@@ -109,6 +109,6 @@
}
private Matcher<Iterable<Failure>> empty() {
- return everyItem(nullValue(Failure.class));
+ return everyItem((Matcher) nullValue(Failure.class));
}
}
exclude-dependency-sources.patch
Version.patch
java17-compatibility.patch
hamcrest-compatibility.patch
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment