Polish JsonMapper and upgrade function dependency in azure adapter
This commit is contained in:
@@ -87,12 +87,9 @@ public abstract class JsonMapper {
|
|||||||
return (T) json;
|
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);
|
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 {
|
else {
|
||||||
return this.doFromJson(json, type);
|
return this.doFromJson(json, type);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.cloud</groupId>
|
<groupId>org.springframework.cloud</groupId>
|
||||||
<artifactId>spring-cloud-function-dependencies</artifactId>
|
<artifactId>spring-cloud-function-dependencies</artifactId>
|
||||||
<version>3.1.0.BUILD-SNAPSHOT</version>
|
<version>3.1.2-SNAPSHOT</version>
|
||||||
<type>pom</type>
|
<type>pom</type>
|
||||||
<scope>import</scope>
|
<scope>import</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|||||||
Reference in New Issue
Block a user