Skip to content

Commit

Permalink
Align with 5.3.28 javadoc for isSimpleValueType
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoeller committed Jun 14, 2023
1 parent 927d27b commit 3171a8b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -941,6 +941,7 @@ public static String nullSafeConciseToString(@Nullable Object obj) {

/**
* Derived from {@link org.springframework.beans.BeanUtils#isSimpleValueType}.
* As of 5.3.28, considering {@code UUID} in addition to the bean-level check.
*/
private static boolean isSimpleValueType(Class<?> type) {
return (Void.class != type && void.class != type &&
Expand All @@ -950,7 +951,7 @@ private static boolean isSimpleValueType(Class<?> type) {
Number.class.isAssignableFrom(type) ||
Date.class.isAssignableFrom(type) ||
Temporal.class.isAssignableFrom(type) ||
UUID.class.isAssignableFrom(type) ||
UUID.class == type ||
URI.class == type ||
URL.class == type ||
Locale.class == type ||
Expand Down

0 comments on commit 3171a8b

Please sign in to comment.