Remove or use unused method parameters
This commit is contained in:
committed by
Andy Wilkinson
parent
c1c0385dbc
commit
717bd2c580
@@ -237,7 +237,7 @@ final class BeanTypeRegistry implements SmartInitializingSingleton {
|
||||
return getConfigurationClassFactoryBeanGeneric(beanFactory, definition, name);
|
||||
}
|
||||
if (StringUtils.hasLength(definition.getBeanClassName())) {
|
||||
return getDirectFactoryBeanGeneric(beanFactory, definition, name);
|
||||
return getDirectFactoryBeanGeneric(beanFactory, definition);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -305,8 +305,8 @@ final class BeanTypeRegistry implements SmartInitializingSingleton {
|
||||
}
|
||||
|
||||
private Class<?> getDirectFactoryBeanGeneric(
|
||||
ConfigurableListableBeanFactory beanFactory, BeanDefinition definition,
|
||||
String name) throws ClassNotFoundException, LinkageError {
|
||||
ConfigurableListableBeanFactory beanFactory,
|
||||
BeanDefinition definition) throws ClassNotFoundException, LinkageError {
|
||||
Class<?> factoryBeanClass = ClassUtils.forName(definition.getBeanClassName(),
|
||||
beanFactory.getBeanClassLoader());
|
||||
Class<?> generic = ResolvableType.forClass(factoryBeanClass).as(FactoryBean.class)
|
||||
|
||||
@@ -49,8 +49,7 @@ abstract class AbstractSessionCondition extends SpringBootCondition {
|
||||
ConditionMessage.Builder message = ConditionMessage
|
||||
.forCondition("Session Condition");
|
||||
Environment environment = context.getEnvironment();
|
||||
StoreType required = SessionStoreMappings.getType(this.webApplicationType,
|
||||
((AnnotationMetadata) metadata).getClassName());
|
||||
StoreType required = SessionStoreMappings.getType(((AnnotationMetadata) metadata).getClassName());
|
||||
if (!environment.containsProperty("spring.session.store-type")) {
|
||||
return ConditionOutcome.match(message.didNotFind("property", "properties")
|
||||
.items(ConditionMessage.Style.QUOTE, "spring.session.store-type"));
|
||||
|
||||
@@ -80,8 +80,7 @@ final class SessionStoreMappings {
|
||||
return configurationClass.getName();
|
||||
}
|
||||
|
||||
static StoreType getType(WebApplicationType webApplicationType,
|
||||
String configurationClassName) {
|
||||
static StoreType getType(String configurationClassName) {
|
||||
for (Map.Entry<StoreType, Map<WebApplicationType, Class<?>>> storeEntry : MAPPINGS
|
||||
.entrySet()) {
|
||||
for (Map.Entry<WebApplicationType, Class<?>> entry : storeEntry.getValue()
|
||||
|
||||
Reference in New Issue
Block a user