Polishing

This commit is contained in:
Juergen Hoeller
2018-01-22 21:34:44 +01:00
parent b47491695e
commit 61579ffe7b
12 changed files with 43 additions and 54 deletions

View File

@@ -40,7 +40,7 @@ import org.springframework.web.servlet.HandlerMapping;
/**
* Resolves arguments of type {@link Map} annotated with {@link MatrixVariable @MatrixVariable}
* where the annotation does not specify a name. In other words the purpose of this resolver
* is to provide access to multiple matrix variables, either all or associted with a specific
* is to provide access to multiple matrix variables, either all or associated with a specific
* path variable.
*
* <p>When a name is specified, an argument of type Map is considered to be a single attribute
@@ -51,7 +51,6 @@ import org.springframework.web.servlet.HandlerMapping;
*/
public class MatrixVariableMapMethodArgumentResolver implements HandlerMethodArgumentResolver {
@Override
public boolean supportsParameter(MethodParameter parameter) {
MatrixVariable matrixVariable = parameter.getParameterAnnotation(MatrixVariable.class);
@@ -113,4 +112,4 @@ public class MatrixVariableMapMethodArgumentResolver implements HandlerMethodArg
return false;
}
}
}