Problem solved by the feature
No actual problem
Feature description
This is in order to provide a DEFAULT singleton instance for Gson. I saw so many programmers write new Gson() anywhere. We might directly provide a default constant to prevent this. Maybe also make Gson.<init>() deprecated because we can use Gson.DEFAULT instead.
Alternatives / workarounds
No actual bug
Problem solved by the feature
No actual problem
Feature description
This is in order to provide a DEFAULT singleton instance for
Gson. I saw so many programmers writenew Gson()anywhere. We might directly provide a default constant to prevent this. Maybe also makeGson.<init>()deprecated because we can useGson.DEFAULTinstead.Alternatives / workarounds
No actual bug