Skip to content

Commit

Permalink
Fix inappropriate eager init.
Browse files Browse the repository at this point in the history
  • Loading branch information
SchutzeHades authored and jhoeller committed Nov 14, 2019
1 parent 8186b77 commit 834ebc4
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -473,10 +473,10 @@ public String[] getBeanNamesForType(ResolvableType type) {
public String[] getBeanNamesForType(ResolvableType type, boolean includeNonSingletons, boolean allowEagerInit) {
Class<?> resolved = type.resolve();
if (resolved != null && !type.hasGenerics()) {
return getBeanNamesForType(resolved, includeNonSingletons, includeNonSingletons);
return getBeanNamesForType(resolved, includeNonSingletons, allowEagerInit);
}
else {
return doGetBeanNamesForType(type, includeNonSingletons, includeNonSingletons);
return doGetBeanNamesForType(type, includeNonSingletons, allowEagerInit);
}
}

Expand Down

0 comments on commit 834ebc4

Please sign in to comment.