Package com.google.gerrit.server.notedb
Class ChangeNoteJson
- java.lang.Object
-
- com.google.gerrit.server.notedb.ChangeNoteJson
-
public class ChangeNoteJson extends Object
ProvidesGson
to parseChangeRevisionNote
, 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 Summary
Constructors Constructor Description ChangeNoteJson()
-