Skip to content

Commit

Permalink
Javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
garydgregory committed Dec 18, 2024
1 parent 3f3c65a commit cfbd6f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ public Object cloneBean(final Object bean) throws IllegalAccessException, Instan
* Converts the value to an object of the specified class (if possible).
* </p>
*
* @param <R> the type of the class for the return value.
* @param value Value to be converted (may be null)
* @param type Class of the value to be converted to
* @return The converted value
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -289,18 +289,20 @@ public <T> Object convert(final Object value, final Class<T> targetType) {
/**
* Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} method.
*
* @param <R> the type of the class for the return value.
* @param value Value to be converted (may be null)
* @param clazz Java class to be converted to (must not be null)
* @return The converted value or null if value is null
* @see ConvertUtilsBean#convert(String[], Class)
*/
public <T> Object convert(final String value, final Class<T> clazz) {
public <R> Object convert(final String value, final Class<R> clazz) {
return convert((Object) value, clazz);
}

/**
* Delegates to the new {@link ConvertUtilsBean#convert(Object, Class)} method.
*
* @param <T> the type of the class for the return value.
* @param value Array of values to be converted
* @param clazz Java array or element class to be converted to (must not be null)
* @return The converted value
Expand Down

0 comments on commit cfbd6f8

Please sign in to comment.