Skip to content

Commit bb02f22

Browse files
author
Kevin Hellemun
committed
NextDouble instead of nextInt. (#46)
1 parent 8eb9212 commit bb02f22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/bunq/sdk/json/BigDecimalTypeAdapter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public BigDecimal read(JsonReader input) throws IOException {
3232
JsonToken type = input.peek();
3333

3434
if (type == JsonToken.NUMBER) {
35-
return new BigDecimal(input.nextInt());
35+
return new BigDecimal(input.nextDouble());
3636
} else if (type == JsonToken.STRING) {
3737
return new BigDecimal(input.nextString());
3838
} else {

0 commit comments

Comments
 (0)