Skip to content

Commit

Permalink
Upgrade the jackson version
Browse files Browse the repository at this point in the history
  • Loading branch information
sunjincheng121 committed May 31, 2019
1 parent 89f5e2c commit 84dcc95
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -51,6 +51,7 @@
import javax.annotation.Nullable;

import java.io.IOException;
import java.io.InputStream;
import java.util.Arrays;
import java.util.Map;
import java.util.concurrent.CompletableFuture;
Expand Down Expand Up @@ -123,7 +124,7 @@ protected void respondAsLeader(ChannelHandlerContext ctx, RoutedRequest routedRe
} else {
try {
ByteBufInputStream in = new ByteBufInputStream(msgContent);
request = MAPPER.readValue(in, untypedResponseMessageHeaders.getRequestClass());
request = MAPPER.readValue((InputStream) in, untypedResponseMessageHeaders.getRequestClass());
} catch (JsonParseException | JsonMappingException je) {
throw new RestHandlerException(
String.format("Request did not match expected format %s.", untypedResponseMessageHeaders.getRequestClass().getSimpleName()),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -120,7 +120,7 @@ under the License.
<chill.version>0.7.6</chill.version>
<zookeeper.version>3.4.10</zookeeper.version>
<curator.version>2.12.0</curator.version>
<jackson.version>2.7.9</jackson.version>
<jackson.version>2.9.8</jackson.version>
<metrics.version>3.1.5</metrics.version>
<prometheus.version>0.3.0</prometheus.version>
<avro.version>1.8.2</avro.version>
Expand Down

0 comments on commit 84dcc95

Please sign in to comment.