Skip to content

Commit

Permalink
Make StandaloneRepresentationHandler compatible with Android version < S
Browse files Browse the repository at this point in the history
  • Loading branch information
this-kramer committed May 19, 2021
1 parent 2bdc4ba commit 56d9497
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public Object deserializeFromRepresentation(Representation repr, Function<String
}

if (type.isAssignableFrom(Integer.class) && repr instanceof BigIntegerRepresentation) {
return repr.bigInt().get().intValueExact();
return repr.bigInt().get().intValue();
}

if (type.isAssignableFrom(String.class) && repr instanceof StringRepresentation) {
Expand Down

0 comments on commit 56d9497

Please sign in to comment.