Skip to content

SDK-91: Java sdk: JsonParseException: Numeric value (2393972736.0) ou… #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

abhisheksr8
Copy link
Contributor

Java sdk: JsonParseException: Numeric value (2393972736.0) out of range of int (-2147483648 - 2147483647)

…t of range of int (-2147483648 - 2147483647)
@@ -20,8 +20,8 @@
@JsonIgnoreProperties(ignoreUnknown = true)
public class Query
{
private int id;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why change the id to be an int?
We are < 20 million right now, It would be a really long time before we hit 2 billion.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no specific reason, thought it is better to move the ints to long to avoid such issues in future.
dont think this will effect the functionality.

rohitagarwal003 pushed a commit to rohitagarwal003/qds-sdk-java that referenced this pull request Feb 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants