Use entrySet() instead of keySet().

pull/79/head
Guillaume Smet 11 years ago
parent b2b07885d8
commit 34d5f74e0f

@ -22,6 +22,7 @@ import java.beans.Introspector;
import java.beans.PropertyDescriptor;
import java.lang.reflect.Method;
import java.util.HashSet;
import java.util.Map.Entry;
import java.util.Properties;
import java.util.Set;
@ -46,10 +47,10 @@ public final class PropertyBeanSetter
return;
}
for (Object propKey : properties.keySet())
for (Entry<Object, Object> propEntry : properties.entrySet())
{
String propName = propKey.toString();
Object propValue = properties.get(propKey);
String propName = propEntry.getKey().toString();
Object propValue = propEntry.getValue();
if (target instanceof HikariConfig && propName.startsWith("dataSource."))
{

Loading…
Cancel
Save