提交 5f99d022 编写于 作者: K Keith Donald

formatValue collection/array

上级 4e50c511
......@@ -5,6 +5,7 @@ import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.lang.reflect.TypeVariable;
import java.text.ParseException;
import java.util.Collection;
import java.util.List;
import java.util.Locale;
import java.util.Map;
......@@ -261,7 +262,7 @@ public abstract class AbstractBinding implements Binding {
@SuppressWarnings("unchecked")
public String formatValue(Object value) {
Formatter formatter;
if (isList() || isMap()) {
if (Collection.class.isAssignableFrom(getValueType()) || getValueType().isArray() || isMap()) {
formatter = getBindingContext().getElementFormatter();
} else {
formatter = getBindingContext().getFormatter();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册