Skip to content

Commit 3171a8b

Browse files
committed
Align with 5.3.28 javadoc for isSimpleValueType
See gh-30661
1 parent 927d27b commit 3171a8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-core/src/main/java/org/springframework/util/ObjectUtils.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,6 +941,7 @@ public static String nullSafeConciseToString(@Nullable Object obj) {
941941

942942
/**
943943
* Derived from {@link org.springframework.beans.BeanUtils#isSimpleValueType}.
944+
* As of 5.3.28, considering {@code UUID} in addition to the bean-level check.
944945
*/
945946
private static boolean isSimpleValueType(Class<?> type) {
946947
return (Void.class != type && void.class != type &&
@@ -950,7 +951,7 @@ private static boolean isSimpleValueType(Class<?> type) {
950951
Number.class.isAssignableFrom(type) ||
951952
Date.class.isAssignableFrom(type) ||
952953
Temporal.class.isAssignableFrom(type) ||
953-
UUID.class.isAssignableFrom(type) ||
954+
UUID.class == type ||
954955
URI.class == type ||
955956
URL.class == type ||
956957
Locale.class == type ||

0 commit comments

Comments
 (0)