git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1304 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Keith Donald
2009-06-02 23:00:26 +00:00
parent c0ea120e96
commit 24ae71908d
2 changed files with 16 additions and 4 deletions
@@ -120,10 +120,11 @@ public class Binder<T> {
.entrySet()) {
Binding binding = getBinding(entry.getKey());
Object value = entry.getValue();
if (value instanceof String[]) {
binding.setValues((String[])value);
} else if (value instanceof String) {
if (value instanceof String) {
binding.setValue((String)entry.getValue());
}
else if (value instanceof String[]) {
binding.setValues((String[])value);
} else {
throw new IllegalArgumentException("Illegal argument " + value);
}