Skip to content

Commit a7f62cf

Browse files
author
joe.walnes
committed
TypeSafeMatcher.matchesSafely() is now public.
1 parent bcc6f7e commit a7f62cf

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

‎CHANGES.txt‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
* Added sensible toString() method to BaseMatcher.
1515

1616
* Created StringDescription.asString() alias (because toString() caused issues
17-
with static imports).
17+
with static imports).
18+
19+
* TypeSafeMatcher.matchesSafely() is now public.
1820

1921
* Generator recognizes @Factory methods that return subclass of Matcher.
2022
(Fix by David Saff)

‎hamcrest-library/src/main/java/org/hamcrest/TypeSafeMatcher.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public abstract class TypeSafeMatcher<T> extends BaseMatcher<T> {
1616
* Subclasses should implement this. The item will already have been checked for
1717
* the specific type and will never be null.
1818
*/
19-
protected abstract boolean matchesSafely(T item);
19+
public abstract boolean matchesSafely(T item);
2020

2121
protected TypeSafeMatcher() {
2222
expectedType = findExpectedType(getClass());

0 commit comments

Comments
 (0)