polishing

This commit is contained in:
Juergen Hoeller
2009-05-20 00:31:00 +00:00
parent a3af9e7330
commit e70d2ce14c
2 changed files with 4 additions and 5 deletions

View File

@@ -543,8 +543,7 @@ public class PersistenceAnnotationBeanPostProcessor extends JndiLocatorSupport
PersistenceProperty[] pps = pc.properties();
if (!ObjectUtils.isEmpty(pps)) {
properties = new Properties();
for (int i = 0; i < pps.length; i++) {
PersistenceProperty pp = pps[i];
for (PersistenceProperty pp : pps) {
properties.setProperty(pp.name(), pp.value());
}
}