Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
clun committed Apr 11, 2024
1 parent f5b7a9c commit f5e527c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,9 @@ public static String marshall(Object o) {
*/
@SuppressWarnings("unchecked")
public static <T> T convertValue(Object bean, Class<T> clazz) {
if (bean == null) {
return null;
}
if (bean.getClass() == clazz) {
return (T) bean;
}
Expand Down

0 comments on commit f5e527c

Please sign in to comment.