mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Fix MethodParameter nestingLevel documentation
Closes gh-36826
(cherry picked from commit 3e585830d7)
This commit is contained in:
@@ -121,8 +121,8 @@ public class MethodParameter {
|
||||
* return type; 0 for the first method parameter; 1 for the second method
|
||||
* parameter, etc.
|
||||
* @param nestingLevel the nesting level of the target type
|
||||
* (typically 1; for example, in case of a List of Lists, 1 would indicate the
|
||||
* nested List, whereas 2 would indicate the element of the nested List)
|
||||
* (1 for the top-level type; in case of a List of Lists, 2 would indicate
|
||||
* the nested List, whereas 3 would indicate the element of the nested List)
|
||||
*/
|
||||
public MethodParameter(Method method, int parameterIndex, int nestingLevel) {
|
||||
Assert.notNull(method, "Method must not be null");
|
||||
@@ -145,8 +145,8 @@ public class MethodParameter {
|
||||
* @param constructor the Constructor to specify a parameter for
|
||||
* @param parameterIndex the index of the parameter
|
||||
* @param nestingLevel the nesting level of the target type
|
||||
* (typically 1; for example, in case of a List of Lists, 1 would indicate the
|
||||
* nested List, whereas 2 would indicate the element of the nested List)
|
||||
* (1 for the top-level type; in case of a List of Lists, 2 would indicate
|
||||
* the nested List, whereas 3 would indicate the element of the nested List)
|
||||
*/
|
||||
public MethodParameter(Constructor<?> constructor, int parameterIndex, int nestingLevel) {
|
||||
Assert.notNull(constructor, "Constructor must not be null");
|
||||
@@ -296,8 +296,8 @@ public class MethodParameter {
|
||||
|
||||
/**
|
||||
* Return the nesting level of the target type
|
||||
* (typically 1; for example, in case of a List of Lists, 1 would indicate the
|
||||
* nested List, whereas 2 would indicate the element of the nested List).
|
||||
* (1 for the top-level type; in case of a List of Lists, 2 would indicate
|
||||
* the nested List, whereas 3 would indicate the element of the nested List).
|
||||
*/
|
||||
public int getNestingLevel() {
|
||||
return this.nestingLevel;
|
||||
|
||||
Reference in New Issue
Block a user