You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* If the methodParameter is a List<List<String>> and the nestingLevel is 2, the nested type descriptor will also be a String.class.
145
145
* If the methodParameter is a Map<Integer, String> and the nesting level is 1, the nested type descriptor will be String, derived from the map value.
146
146
* If the methodParameter is a List<Map<Integer, String>> and the nesting level is 2, the nested type descriptor will be String, derived from the map value.
147
+
* Returns null if a nested type cannot be obtained because it was not declared.
148
+
* For example, if the method parameter is a List<?>, the nested type descriptor returned will be null.
147
149
* @param methodParameter the method parameter with a nestingLevel of 1
148
150
* @param nestingLevel the nesting level of the collection/array element or map key/value declaration within the method parameter.
149
-
* @return the nested type descriptor
150
-
* @throws IllegalArgumentException if the method parameter is not of a collection, array, or map type.
151
+
* @return the nested type descriptor at the specified nesting level, or null if it could not be obtained.
152
+
* @throws IllegalArgumentException if the types up to the specified nesting level are not of collection, array, or map types.
Copy file name to clipboardExpand all lines: org.springframework.core/src/main/java/org/springframework/core/convert/support/GenericConversionService.java
Copy file name to clipboardExpand all lines: org.springframework.core/src/test/java/org/springframework/core/convert/support/GenericConversionServiceTests.java
+37Lines changed: 37 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,43 @@ public class GenericConversionServiceTests {
0 commit comments