Files
gerrit/gerrit-server/src/main/java/com/google/gerrit/server
Yacob Yonas 9733ae83b3 Modify CommentsInNotesUtil to handle removing a notes object
Previously, we were using the inserter to insert null if the list of
comments to write to the NoteMap was empty. However, in this case, we
should be removing the note that existed before. Therefore, I made an
additional method for the purpose of removing the note if we deleted
all remaining comments from that note, removeNoteFromNoteMap().

Callers should call writeCommentsToNoteMap if they have a non-empty
list of comments that they want to write to a note. If they have an
empty list, they should call removeNoteFromNoteMap which requires a
parameter for the RevId for the note where the comments used to be.

Change-Id: Ia91d8698206ab4814039a47190319838ecb541cc
2014-07-18 14:26:54 -07:00
..
2014-05-28 09:29:12 +02:00
2014-07-17 00:30:08 +02:00
2014-05-29 15:42:08 -05:00