pull/9072/merge
Madhura Bhave 8 years ago
parent c99be7c2b0
commit f42fe5f8e5

@ -37,6 +37,9 @@ import org.springframework.core.ResolvableType;
*/
class MapBinder extends AggregateBinder<Map<Object, Object>> {
private static final Bindable<Map<String, String>> STRING_STRING_MAP = Bindable
.mapOf(String.class, String.class);
MapBinder(BindContext context) {
super(context);
}
@ -58,7 +61,7 @@ class MapBinder extends AggregateBinder<Map<Object, Object>> {
private Bindable<?> resolveTarget(Bindable<?> target) {
Class<?> type = target.getType().resolve();
if (Properties.class.isAssignableFrom(type)) {
return Bindable.mapOf(String.class, String.class);
return STRING_STRING_MAP;
}
return target;
}

Loading…
Cancel
Save