Package com.google.gerrit.server.change
Class CommentsValidator
java.lang.Object
com.google.gerrit.server.change.CommentsValidator
-
Method Summary
Modifier and TypeMethodDescription<T extends Comment>
voidcheckComments
(RevisionResource revision, Map<String, List<T>> commentsPerPath) static void
ensureFixSuggestionsAreAddable
(List<FixSuggestionInfo> fixSuggestionInfos, String commentPath)
-
Method Details
-
ensureFixSuggestionsAreAddable
public static void ensureFixSuggestionsAreAddable(List<FixSuggestionInfo> fixSuggestionInfos, String commentPath) throws BadRequestException - Throws:
BadRequestException
-
checkComments
public <T extends Comment> void checkComments(RevisionResource revision, Map<String, List<T>> commentsPerPath) throws BadRequestException, PatchListNotAvailableException
-