Have had a very old version of Auto Value Gson (0.4.4alpha) from Ryan Harter. Now we want to migrate to something more current (1.0.0). However, something that is missing for me are the default values of the properties when deserializing - I used to be able to do something like
public static TypeAdapter<Highlighted> typeAdapter(Gson gson) {
return new AutoValue_MyObjects.GsonTypeAdapter(gson)
.setDefaultOptions(new ArrayList<>());
}
And now the default methods do not seem to be supported any longer. Any ideas how I can achieve what I used to have in the newer version?