Package com.google.gerrit.server.notedb
Class ChangeNoteJson
java.lang.Object
com.google.gerrit.server.notedb.ChangeNoteJson
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 Summary
Constructors -
Method Summary
-
Constructor Details
-
ChangeNoteJson
public ChangeNoteJson()
-
-
Method Details
-
getGson
public com.google.gson.Gson getGson()
-