提交 dc59e505 编写于 作者: J Juergen Hoeller

Avoid unnecessary use of ResolvableType within MethodParameter

Closes gh-23792
上级 d51ab24a
......@@ -486,7 +486,9 @@ public class MethodParameter {
if (paramType != null) {
return paramType;
}
paramType = ResolvableType.forMethodParameter(this, null, 1).resolve();
if (getContainingClass() != getDeclaringClass()) {
paramType = ResolvableType.forMethodParameter(this, null, 1).resolve();
}
if (paramType == null) {
paramType = computeParameterType();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册