This commit is contained in:
Keith Donald
2009-06-02 23:00:26 +00:00
parent a696d78bd1
commit 0a0b10b2ff
2 changed files with 16 additions and 4 deletions

View File

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