Polish "Reuse ResolvableType in getDependencyType"

See gh-24525
This commit is contained in:
Stephane Nicoll 2021-12-21 11:17:53 +01:00
parent b69ab8d568
commit f1fe16e3cd
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ public class DependencyDescriptor extends InjectionPoint implements Serializable
if (this.field != null) { if (this.field != null) {
if (this.nestingLevel > 1) { if (this.nestingLevel > 1) {
Class<?> clazz = getResolvableType().getRawClass(); Class<?> clazz = getResolvableType().getRawClass();
return clazz != null ? clazz : Object.class; return (clazz != null ? clazz : Object.class);
} }
else { else {
return this.field.getType(); return this.field.getType();