+ fix to minor bugs regarding naming

This commit is contained in:
costin
2010-07-15 20:32:49 +03:00
parent c153c91768
commit 0403b64ce8
2 changed files with 2 additions and 2 deletions

View File

@@ -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());
}

View File

@@ -132,7 +132,7 @@ public class RegionFactoryBean<K, V> implements DisposableBean, FactoryBean<Regi
}
public void setBeanName(String beanName) {
this.beanName = name;
this.beanName = beanName;
}
/**