Skip to content

Commit 2528c3a

Browse files
author
nat.pryce
committed
fixed generic type bounds
1 parent 40baf14 commit 2528c3a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎hamcrest-integration/src/main/java/org/hamcrest/MatcherAssert.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55

66
public class MatcherAssert {
7-
public static <T> void assertThat(T actual, Matcher<T> matcher) {
7+
public static <T> void assertThat(T actual, Matcher<? super T> matcher) {
88
assertThat("", actual, matcher);
99
}
1010

11-
public static <T> void assertThat(String reason, T actual, Matcher<T> matcher) {
11+
public static <T> void assertThat(String reason, T actual, Matcher<? super T> matcher) {
1212
if (!matcher.matches(actual)) {
1313
Description description = new StringDescription();
1414
description.appendText(reason)

0 commit comments

Comments
 (0)