From 5f03c97295514fb7577ef2fc1fec2e3d16df0858 Mon Sep 17 00:00:00 2001 From: Sam Brannen Date: Fri, 8 May 2015 16:03:55 +0200 Subject: [PATCH] Polish Javadoc for MethodParameter --- .../org/springframework/core/MethodParameter.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/core/MethodParameter.java b/spring-core/src/main/java/org/springframework/core/MethodParameter.java index 5a54a6c2fd..368d4c48f2 100644 --- a/spring-core/src/main/java/org/springframework/core/MethodParameter.java +++ b/spring-core/src/main/java/org/springframework/core/MethodParameter.java @@ -66,20 +66,22 @@ public class MethodParameter { /** - * Create a new MethodParameter for the given method, with nesting level 1. + * Create a new {@code MethodParameter} for the given method, with nesting level 1. * @param method the Method to specify a parameter for - * @param parameterIndex the index of the parameter + * @param parameterIndex the index of the parameter: -1 for the method + * return type; 0 for the first method parameter; 1 for the second method + * parameter, etc. */ public MethodParameter(Method method, int parameterIndex) { this(method, parameterIndex, 1); } /** - * Create a new MethodParameter for the given method. + * Create a new {@code MethodParameter} for the given method. * @param method the Method to specify a parameter for - * @param parameterIndex the index of the parameter - * (-1 for the method return type; 0 for the first method parameter, - * 1 for the second method parameter, etc) + * @param parameterIndex the index of the parameter: -1 for the method + * 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; e.g. in case of a List of Lists, 1 would indicate the * nested List, whereas 2 would indicate the element of the nested List)