@@ -117,8 +117,8 @@ public MethodParameter(Method method, int parameterIndex) {
117117 * return type; 0 for the first method parameter; 1 for the second method
118118 * parameter, etc.
119119 * @param nestingLevel the nesting level of the target type
120- * (typically 1; for example, in case of a List of Lists, 1 would indicate the
121- * nested List, whereas 2 would indicate the element of the nested List)
120+ * (1 for the top-level type; in case of a List of Lists, 2 would indicate
121+ * the nested List, whereas 3 would indicate the element of the nested List)
122122 */
123123 public MethodParameter (Method method , int parameterIndex , int nestingLevel ) {
124124 Assert .notNull (method , "Method must not be null" );
@@ -142,8 +142,8 @@ public MethodParameter(Constructor<?> constructor, int parameterIndex) {
142142 * @param constructor the Constructor to specify a parameter for
143143 * @param parameterIndex the index of the parameter
144144 * @param nestingLevel the nesting level of the target type
145- * (typically 1; for example, in case of a List of Lists, 1 would indicate the
146- * nested List, whereas 2 would indicate the element of the nested List)
145+ * (1 for the top-level type; in case of a List of Lists, 2 would indicate
146+ * the nested List, whereas 3 would indicate the element of the nested List)
147147 */
148148 public MethodParameter (Constructor <?> constructor , int parameterIndex , int nestingLevel ) {
149149 Assert .notNull (constructor , "Constructor must not be null" );
@@ -292,8 +292,8 @@ public void decreaseNestingLevel() {
292292
293293 /**
294294 * Return the nesting level of the target type
295- * (typically 1; for example, in case of a List of Lists, 1 would indicate the
296- * nested List, whereas 2 would indicate the element of the nested List).
295+ * (1 for the top-level type; in case of a List of Lists, 2 would indicate
296+ * the nested List, whereas 3 would indicate the element of the nested List).
297297 */
298298 public int getNestingLevel () {
299299 return this .nestingLevel ;
0 commit comments