Class ChangeNoteJson


  • public class ChangeNoteJson
    extends Object
    Provides Gson to parse ChangeRevisionNote, attached to the change update.

    Apart from the adapters for the custom JSON format, this class also registers adapters that support forward/backward compatibility when modifying ChangeNotes storage format.

    NOTE: All changes to the storage format must be both forward and backward compatible, see comment on ChangeNotesParser.

    For JSON, such changes include e.g. modifications to the serialized AutoValue classes.

    • Constructor Detail

      • ChangeNoteJson

        public ChangeNoteJson()
    • Method Detail

      • getGson

        public com.google.gson.Gson getGson()