Check for simple String inputs and don't convert them

This commit is contained in:
Dave Syer
2017-01-10 15:27:42 -05:00
parent 9321dc7311
commit b3750cdfa5

View File

@@ -259,6 +259,9 @@ abstract class ProxyWrapper<T> {
}
public Object fromJson(String value) {
if (getType().equals(String.class)) {
return value;
}
try {
return mapper.readValue(value, getType());
}