Skip to content

Commit ff30329

Browse files
bebeissbrannen
authored andcommitted
Fix incorrect method name in TypeDescriptor.array() Javadoc
Closes gh-36549 Signed-off-by: Junseo Bae <ferrater1013@gmail.com>
1 parent 6d3d3d1 commit ff30329

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

spring-core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ public static TypeDescriptor map(Class<?> mapType, @Nullable TypeDescriptor keyT
631631
* Create a new type descriptor as an array of the specified type.
632632
* <p>For example to create a {@code Map<String,String>[]} use:
633633
* <pre class="code">
634-
* TypeDescriptor.array(TypeDescriptor.map(Map.class, TypeDescriptor.value(String.class), TypeDescriptor.value(String.class)));
634+
* TypeDescriptor.array(TypeDescriptor.map(Map.class, TypeDescriptor.valueOf(String.class), TypeDescriptor.valueOf(String.class)));
635635
* </pre>
636636
* @param elementTypeDescriptor the {@link TypeDescriptor} of the array element or {@code null}
637637
* @return an array {@link TypeDescriptor} or {@code null} if {@code elementTypeDescriptor} is {@code null}

0 commit comments

Comments
 (0)