We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9c2c8b commit f2d687fCopy full SHA for f2d687f
hamcrest/src/main/java/org/hamcrest/CoreMatchers.java
@@ -249,7 +249,7 @@ public static org.hamcrest.Matcher<java.lang.Object> equalToObject(java.lang.Obj
249
* used when it is necessary to make generics conform, for example in the JMock clause
250
* <code>with(any(Thing.class))</code></p>
251
* For example:
252
- * <pre>assertThat(new Canoe(), instanceOf(Canoe.class));</pre>
+ * <pre>assertThat(new Canoe(), any(Canoe.class));</pre>
253
*/
254
public static <T> org.hamcrest.Matcher<T> any(java.lang.Class<T> type) {
255
return org.hamcrest.core.IsInstanceOf.any(type);
0 commit comments