+ fix to minor bugs regarding naming
This commit is contained in:
@@ -114,7 +114,7 @@ public class CacheFactoryBean implements BeanNameAware, BeanFactoryAware, BeanCl
|
||||
}
|
||||
|
||||
private Properties mergeProperties() {
|
||||
Properties cfgProps = new Properties(properties);
|
||||
Properties cfgProps = (properties != null ? (Properties) properties.clone() : new Properties());
|
||||
if (StringUtils.hasText(name)) {
|
||||
cfgProps.setProperty("name", name.trim());
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class RegionFactoryBean<K, V> implements DisposableBean, FactoryBean<Regi
|
||||
}
|
||||
|
||||
public void setBeanName(String beanName) {
|
||||
this.beanName = name;
|
||||
this.beanName = beanName;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user