Skip to content

Commit 650e5cf

Browse files
committed
JavaDoc only @return org.hamcrest.object
1 parent a79191f commit 650e5cf

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

hamcrest/src/main/java/org/hamcrest/object/HasToString.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ protected String featureValueOf(T actual) {
2323
*
2424
* @param toStringMatcher
2525
* the matcher used to verify the toString result
26+
* @return The matcher.
2627
*/
2728
public static <T> Matcher<T> hasToString(Matcher<? super String> toStringMatcher) {
2829
return new HasToString<T>(toStringMatcher);
@@ -36,6 +37,7 @@ public static <T> Matcher<T> hasToString(Matcher<? super String> toStringMatcher
3637
*
3738
* @param expectedToString
3839
* the expected toString result
40+
* @return The matcher.
3941
*/
4042
public static <T> Matcher<T> hasToString(String expectedToString) {
4143
return new HasToString<T>(equalTo(expectedToString));

hamcrest/src/main/java/org/hamcrest/object/IsCompatibleType.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ public void describeTo(Description description) {
3434
*
3535
* @param baseType
3636
* the base class to examine classes against
37+
* @return The matcher.
3738
*/
3839
public static <T> Matcher<Class<?>> typeCompatibleWith(Class<T> baseType) {
3940
return new IsCompatibleType<T>(baseType);

hamcrest/src/main/java/org/hamcrest/object/IsEventFrom.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ public void describeTo(Description description) {
5656
* the class of the event to match on
5757
* @param source
5858
* the source of the event
59+
* @return The matcher.
5960
*/
6061
public static Matcher<EventObject> eventFrom(Class<? extends EventObject> eventClass, Object source) {
6162
return new IsEventFrom(eventClass, source);
@@ -69,6 +70,7 @@ public static Matcher<EventObject> eventFrom(Class<? extends EventObject> eventC
6970
*
7071
* @param source
7172
* the source of the event
73+
* @return The matcher.
7274
*/
7375
public static Matcher<EventObject> eventFrom(Object source) {
7476
return eventFrom(EventObject.class, source);

0 commit comments

Comments
 (0)