Allow RevisionNotes to be any type, not just Comments

Change-Id: Iab28dd2a5950f2f6714bec7a8b7f93b0642e91b6
This commit is contained in:
Dave Borowitz 2019-02-21 13:41:43 -08:00 committed by David Pursehouse
parent 1f9e76eaca
commit 399134f939

@ -19,7 +19,6 @@ import static org.eclipse.jgit.lib.Constants.OBJ_BLOB;
import com.google.common.collect.ImmutableList;
import com.google.gerrit.common.UsedAt;
import com.google.gerrit.reviewdb.client.Comment;
import java.io.IOException;
import java.util.List;
import org.eclipse.jgit.errors.ConfigInvalidException;
@ -28,7 +27,7 @@ import org.eclipse.jgit.lib.ObjectReader;
import org.eclipse.jgit.util.MutableInteger;
@UsedAt(UsedAt.Project.PLUGIN_CHECKS)
public abstract class RevisionNote<T extends Comment> {
public abstract class RevisionNote<T> {
static final int MAX_NOTE_SZ = 25 << 20;
protected static void trimLeadingEmptyLines(byte[] bytes, MutableInteger p) {