From 40e1c21e8e9d05a04fcbfa0b942aabb7b04361b6 Mon Sep 17 00:00:00 2001 From: Junseo Bae Date: Fri, 27 Mar 2026 14:16:45 +0900 Subject: [PATCH] Fix incorrect method name in TypeDescriptor.array() Javadoc Signed-off-by: Junseo Bae --- .../java/org/springframework/core/convert/TypeDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java b/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java index 57ddf078df9b..3759eff1733b 100644 --- a/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java +++ b/spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java @@ -631,7 +631,7 @@ public static TypeDescriptor map(Class mapType, @Nullable TypeDescriptor keyT * Create a new type descriptor as an array of the specified type. *

For example to create a {@code Map[]} use: *

-	 * TypeDescriptor.array(TypeDescriptor.map(Map.class, TypeDescriptor.value(String.class), TypeDescriptor.value(String.class)));
+	 * TypeDescriptor.array(TypeDescriptor.map(Map.class, TypeDescriptor.valueOf(String.class), TypeDescriptor.valueOf(String.class)));
 	 * 
* @param elementTypeDescriptor the {@link TypeDescriptor} of the array element or {@code null} * @return an array {@link TypeDescriptor} or {@code null} if {@code elementTypeDescriptor} is {@code null}