Skip to content

Commit f9ba174

Browse files
committed
Factory methods. Any IsAnything
1 parent 7318fc9 commit f9ba174

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

hamcrest-core/src/main/java/org/hamcrest/core/IsAnything.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import org.hamcrest.BaseMatcher;
66
import org.hamcrest.Description;
7-
import org.hamcrest.Matcher;
87

98

109
/**
@@ -31,22 +30,4 @@ public boolean matches(Object o) {
3130
public void describeTo(Description description) {
3231
description.appendText(message);
3332
}
34-
35-
/**
36-
* Creates a matcher that always matches, regardless of the examined object.
37-
*/
38-
public static Matcher<Object> anything() {
39-
return new IsAnything<>();
40-
}
41-
42-
/**
43-
* Creates a matcher that always matches, regardless of the examined object, but describes
44-
* itself with the specified {@link String}.
45-
*
46-
* @param description
47-
* a meaningful {@link String} used when describing itself
48-
*/
49-
public static Matcher<Object> anything(String description) {
50-
return new IsAnything<>(description);
51-
}
5233
}

0 commit comments

Comments
 (0)