Skip to content

Commit 60b28d2

Browse files
committed
JavaDoc only @return org.hamcrest.beans
1 parent a82f91f commit 60b28d2

3 files changed

Lines changed: 4 additions & 0 deletions

File tree

hamcrest/src/main/java/org/hamcrest/beans/HasProperty.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public void describeTo(Description description) {
4848
*
4949
* @param propertyName
5050
* the name of the JavaBean property that examined beans should possess
51+
* @return The matcher.
5152
*/
5253
public static <T> Matcher<T> hasProperty(String propertyName) {
5354
return new HasProperty<T>(propertyName);

hamcrest/src/main/java/org/hamcrest/beans/HasPropertyWithValue.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public Condition<Method> apply(PropertyDescriptor property, Description mismatch
159159
* the name of the JavaBean property that examined beans should possess
160160
* @param valueMatcher
161161
* a matcher for the value of the specified property of the examined bean
162+
* @return The matcher.
162163
*/
163164
public static <T> Matcher<T> hasProperty(String propertyName, Matcher<?> valueMatcher) {
164165
return new HasPropertyWithValue<>(propertyName, valueMatcher);
@@ -176,6 +177,7 @@ public static <T> Matcher<T> hasProperty(String propertyName, Matcher<?> valueMa
176177
* the dot-separated path from the examined object to the JavaBean property
177178
* @param valueMatcher
178179
* a matcher for the value of the specified property of the examined bean
180+
* @return The matcher.
179181
*/
180182
public static <T> Matcher<T> hasPropertyAtPath(String path, Matcher<T> valueMatcher) {
181183
List<String> properties = Arrays.asList(path.split("\\."));

hamcrest/src/main/java/org/hamcrest/beans/SamePropertyValuesAs.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ private static Object readProperty(Method method, Object target) {
151151
* the bean against which examined beans are compared
152152
* @param ignoredProperties
153153
* do not check any of these named properties.
154+
* @return The matcher.
154155
*/
155156
public static <B> Matcher<B> samePropertyValuesAs(B expectedBean, String... ignoredProperties) {
156157
return new SamePropertyValuesAs<>(expectedBean, asList(ignoredProperties));

0 commit comments

Comments
 (0)