Skip to content

Commit db7d4c0

Browse files
committed
Fixed Javadoc for the new Bean methods and simple method invocation
1 parent a013039 commit db7d4c0

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

src/main/java/org/bbottema/javareflection/BeanUtils.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,8 @@ static FieldWrapper resolveBeanProperty(final Field field, final EnumSet<BeanRes
263263
}
264264

265265
/**
266-
* Calls the setters for the first field that matches given fieldName. Attempts to convert the value in case the type is incorrect.
266+
* Calls the setter for the first field in the inheritance chain that matches given fieldName.
267+
* Attempts to convert the value in case the type is incorrect.
267268
*
268269
* @return The actual value used in the bean setter.
269270
*/
@@ -291,9 +292,9 @@ static public Object invokeBeanSetter(Object o, String fieldName, Object value)
291292
}
292293

293294
/**
294-
* Calls the setters for the first field that matches given fieldName. Attempts to convert the value in case the type is incorrect.
295+
* Calls the getter for the first field in the inheritance chain that matches given fieldName.
295296
*
296-
* @return The actual value used in the bean setter.
297+
* @see #collectFields(Class, Class, EnumSet, EnumSet)
297298
*/
298299
@SuppressWarnings("ConstantConditions")
299300
static public Object invokeBeanGetter(Object o, String fieldName) {

src/main/java/org/bbottema/javareflection/MethodUtils.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@
6969
public final class MethodUtils {
7070

7171
private static final Logger LOGGER = getLogger(MethodUtils.class);
72-
72+
73+
/**
74+
* Delegates to {@link Method#invoke(Object, Object...)} while converting checked exceptions into runtime
75+
* exceptions.
76+
*/
7377
@Nullable
7478
@SuppressWarnings({"unchecked"})
7579
public static <T> T invokeMethodSimple(final Method method, final Object subject, final Object... args) {

0 commit comments

Comments
 (0)