orhanobut / hawk

✔️ Secure, simple key-value storage for Android
Apache License 2.0
3.98k stars 388 forks source link

Deserializing long as double #229

Closed RodrigoNovais closed 5 years ago

RodrigoNovais commented 5 years ago

Please try to fill all questions below before submitting an issue.

When I read the values of the recovered itens I get this error, the long value is a timestamp java.lang.ClassCastException: java.lang.Double cannot be cast to java.lang.Long I'm inputing this value 1547676015188 and receiving this in the log 1.547676015188E12 I hope you can help me on how to proceed