Polishing
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2017 the original author or authors.
|
||||
* Copyright 2002-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -55,8 +55,9 @@ import org.springframework.web.server.ServerWebExchange;
|
||||
public class PathVariableMethodArgumentResolver extends AbstractNamedValueSyncArgumentResolver {
|
||||
|
||||
/**
|
||||
* @param factory a bean factory to use for resolving ${...}
|
||||
* placeholder and #{...} SpEL expressions in default values;
|
||||
* Create a new {@link PathVariableMethodArgumentResolver}.
|
||||
* @param factory a bean factory to use for resolving {@code ${...}}
|
||||
* placeholder and {@code #{...}} SpEL expressions in default values;
|
||||
* or {@code null} if default values are not expected to contain expressions
|
||||
* @param registry for checking reactive type wrappers
|
||||
*/
|
||||
@@ -84,7 +85,6 @@ public class PathVariableMethodArgumentResolver extends AbstractNamedValueSyncAr
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
protected Object resolveNamedValue(String name, MethodParameter parameter, ServerWebExchange exchange) {
|
||||
String attributeName = HandlerMapping.URI_TEMPLATE_VARIABLES_ATTRIBUTE;
|
||||
return exchange.getAttributeOrDefault(attributeName, Collections.emptyMap()).get(name);
|
||||
@@ -96,7 +96,6 @@ public class PathVariableMethodArgumentResolver extends AbstractNamedValueSyncAr
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
protected void handleResolvedValue(
|
||||
@Nullable Object arg, String name, MethodParameter parameter, Model model, ServerWebExchange exchange) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user