Skip to content

Commit b0a2869

Browse files
committed
qualify matcher generic type, purely to allow compilation in java 6
1 parent fddfc9a commit b0a2869

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎hamcrest-core/src/test/java/org/hamcrest/core/CombinableTest.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,6 @@ public final class CombinableTest {
6969
@Test public void
7070
picksUpTypeFromLeftHandSideOfExpression() {
7171
@SuppressWarnings("unused")
72-
Matcher<String> matcher = both(equalTo("yellow")).and(notNullValue());
72+
Matcher<String> matcher = CombinableMatcher.<String>both(equalTo("yellow")).and(notNullValue(String.class));
7373
}
7474
}

0 commit comments

Comments
 (0)