From ff3032986197fcd40d3f0aa1abfc1275ed7dea0b 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 Closes gh-36549 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 57ddf078df9..3759eff1733 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 class TypeDescriptor implements Serializable { * 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}