mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Restored isTypeMatch null behavior and refined typeToMatch parameter name
Issue: SPR-12147
This commit is contained in:
+5
-4
@@ -86,6 +86,7 @@ class StubWebApplicationContext implements WebApplicationContext {
|
||||
this.resourcePatternResolver = new ServletContextResourcePatternResolver(servletContext);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns an instance that can initialize {@link ApplicationContextAware} beans.
|
||||
*/
|
||||
@@ -194,13 +195,13 @@ class StubWebApplicationContext implements WebApplicationContext {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTypeMatch(String name, ResolvableType targetType) throws NoSuchBeanDefinitionException {
|
||||
return this.beanFactory.isTypeMatch(name, targetType);
|
||||
public boolean isTypeMatch(String name, ResolvableType typeToMatch) throws NoSuchBeanDefinitionException {
|
||||
return this.beanFactory.isTypeMatch(name, typeToMatch);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isTypeMatch(String name, Class<?> targetType) throws NoSuchBeanDefinitionException {
|
||||
return this.beanFactory.isTypeMatch(name, targetType);
|
||||
public boolean isTypeMatch(String name, Class<?> typeToMatch) throws NoSuchBeanDefinitionException {
|
||||
return this.beanFactory.isTypeMatch(name, typeToMatch);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user