Skip to content

Commit

Permalink
Upgrade jackson deps from 2.4.2 to 2.9.7 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidxia authored and dflemstr committed Mar 3, 2019
1 parent eb2acdf commit 9bb680c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@
import static org.junit.Assert.assertThat;

import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.BigIntegerNode;
import com.fasterxml.jackson.databind.node.DecimalNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import java.math.BigDecimal;
import java.math.BigInteger;
Expand Down Expand Up @@ -65,7 +67,7 @@ public void testLiteralLong() throws Exception {

@Test
public void testLiteralBigInteger() throws Exception {
final Matcher<JsonNode> sut = jsonNumber(NF.numberNode(BigInteger.ONE));
final Matcher<JsonNode> sut = jsonNumber(BigIntegerNode.valueOf(BigInteger.ONE));

assertThat(NF.numberNode(BigInteger.ONE), is(sut));
}
Expand All @@ -86,7 +88,7 @@ public void testLiteralDouble() throws Exception {

@Test
public void testLiteralBigDecimal() throws Exception {
final Matcher<JsonNode> sut = jsonNumber(NF.numberNode(BigDecimal.ONE));
final Matcher<JsonNode> sut = jsonNumber(DecimalNode.valueOf(BigDecimal.ONE));

assertThat(NF.numberNode(BigDecimal.ONE), is(sut));
}
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,12 @@
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.4.2</version>
<version>2.9.7</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.4.2</version>
<version>2.9.7</version>
</dependency>
<dependency>
<groupId>com.google.auto.value</groupId>
Expand Down

0 comments on commit 9bb680c

Please sign in to comment.