mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 21:39:05 +00:00
polish
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1304 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+4
-3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user