Browse Source

Avoid unnecessary use of ResolvableType within MethodParameter

Closes gh-23792
pull/23891/head
Juergen Hoeller 5 years ago
parent
commit
dc59e50561
  1. 2
      spring-core/src/main/java/org/springframework/core/MethodParameter.java

2
spring-core/src/main/java/org/springframework/core/MethodParameter.java

@ -486,7 +486,9 @@ public class MethodParameter { @@ -486,7 +486,9 @@ public class MethodParameter {
if (paramType != null) {
return paramType;
}
if (getContainingClass() != getDeclaringClass()) {
paramType = ResolvableType.forMethodParameter(this, null, 1).resolve();
}
if (paramType == null) {
paramType = computeParameterType();
}

Loading…
Cancel
Save