Skip to content

Commit

Permalink
Revert UriMatcher hamcrest changes.
Browse files Browse the repository at this point in the history
They require a new external hamcrest release.

PiperOrigin-RevId: 698144828
  • Loading branch information
brettchabot authored and copybara-androidxtest committed Nov 19, 2024
1 parent 5f79d35 commit 470ac95
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public static Matcher<Uri> hasParamWithValue(
checkNotNull(paramName);
checkNotNull(paramVal);
final Matcher<QueryParamEntry> qpe = queryParamEntry(paramName, paramVal);
final Matcher<Iterable<? extends QueryParamEntry>> matcherImpl = hasItem(qpe);
final Matcher<Iterable<? super QueryParamEntry>> matcherImpl = hasItem(qpe);

return new TypeSafeMatcher<Uri>() {

Expand All @@ -207,7 +207,7 @@ public void describeTo(Description description) {

private static Matcher<QueryParamEntry> queryParamEntry(
final Matcher<String> paramName, final Matcher<String> paramVal) {
final Matcher<Iterable<? extends String>> valMatcher = hasItem(paramVal);
final Matcher<Iterable<? super String>> valMatcher = hasItem(paramVal);

return new TypeSafeMatcher<QueryParamEntry>(QueryParamEntry.class) {

Expand Down

0 comments on commit 470ac95

Please sign in to comment.