CaptainNemo
CaptainNemo

Reputation: 1552

ClassMapper warnings after upgrading Firebase

After upgrading to Firebase 3, I started recieving the following errors when serializing java.util.date:

W/ClassMapper: No setter/field for day found on class java.util.Date (fields/setters are case sensitive!)

W/ClassMapper: No setter/field for timezoneOffset found on class java.util.Date (fields/setters are case sensitive!)

Will they affect anything?

How can I avoid those warnings?

Upvotes: 3

Views: 1933

Answers (1)

cybergen
cybergen

Reputation: 3157

As stated here and here, Firebase doesn't use Jackson anymore and Date is not supported. Store it in a Long variable. You can add convenience getters/setters and mark them with @Exclude to suppress serialization.

Upvotes: 4

Related Questions