Polish "Reuse ResolvableType in getDependencyType"
See gh-24525
This commit is contained in:
parent
b69ab8d568
commit
f1fe16e3cd
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue