Skip to content

Commit ac1c38b

Browse files
author
neildunn
committed
Add generic wildcard to Matcher<Object> is(Class<?>) to resolve ambuguity with is(T value) with Eclipse's compiler
1 parent eb0c1f3 commit ac1c38b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • hamcrest-core/src/main/java/org/hamcrest/core

‎hamcrest-core/src/main/java/org/hamcrest/core/Is.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public static <T> Matcher<T> is(T value) {
6161
* vs assertThat(cheese, is(Cheddar.class))
6262
*/
6363
@Factory
64-
public static Matcher<Object> is(Class type) {
64+
public static Matcher<Object> is(Class<?> type) {
6565
return is(instanceOf(type));
6666
}
6767

0 commit comments

Comments
 (0)