Merge branch '3.1.x'

Closes gh-37799
This commit is contained in:
Scott Frederick
2023-10-09 15:42:32 -05:00
2 changed files with 51 additions and 2 deletions

View File

@@ -41,6 +41,7 @@ import org.springframework.util.ReflectionUtils;
* @author Moritz Halbritter
* @author Andy Wilkinson
* @author Phillip Webb
* @author Scott Frederick
*/
class ServiceConnectionContextCustomizerFactory implements ContextCustomizerFactory {
@@ -61,6 +62,9 @@ class ServiceConnectionContextCustomizerFactory implements ContextCustomizerFact
if (TestContextAnnotationUtils.searchEnclosingClass(clazz)) {
findSources(clazz.getEnclosingClass(), sources);
}
for (Class<?> implementedInterface : clazz.getInterfaces()) {
findSources(implementedInterface, sources);
}
}
@SuppressWarnings("unchecked")