Polish JsonMapper and upgrade function dependency in azure adapter

This commit is contained in:
Oleg Zhurakousky
2021-03-10 16:31:17 +01:00
parent 778672e6ea
commit 863bbdc3eb
2 changed files with 2 additions and 5 deletions

View File

@@ -87,12 +87,9 @@ public abstract class JsonMapper {
return (T) json;
}
}
if (json instanceof String && !isJsonString(json) && (String.class == type || byte[].class == type)) {
if (json instanceof String && (String.class == type || byte[].class == type)) {
return String.class == type ? (T) json : (T) ((String) json).getBytes(StandardCharsets.UTF_8);
}
// if (String.class == type && json instanceof String && !isJsonString(json)) {
// return (T) json;
// }
else {
return this.doFromJson(json, type);
}