Remove declaration of exceptions that are never thrown

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Iaa53ce323b1b6076aa9537d773f792d51a9afc0e
This commit is contained in:
Edwin Kempin
2020-08-27 09:57:32 +02:00
parent 5b935c83af
commit e991f9c59b
3 changed files with 3 additions and 5 deletions

View File

@@ -420,7 +420,7 @@ public class MailProcessor {
private HumanComment persistentCommentFromMailComment(
ChangeContext ctx, MailComment mailComment, PatchSet patchSetForComment)
throws UnprocessableEntityException, PatchListNotAvailableException {
throws PatchListNotAvailableException {
String fileName;
// The patch set that this comment is based on is different if this
// comment was sent in reply to a comment on a previous patch set.

View File

@@ -940,8 +940,7 @@ public class PostReview implements RestModifyView<RevisionResource, ReviewInput>
}
private boolean insertComments(ChangeContext ctx, List<RobotComment> newRobotComments)
throws UnprocessableEntityException, PatchListNotAvailableException,
CommentsRejectedException {
throws PatchListNotAvailableException, CommentsRejectedException {
Map<String, List<CommentInput>> inputComments = in.comments;
if (inputComments == null) {
inputComments = Collections.emptyMap();

View File

@@ -133,8 +133,7 @@ public class ReplyAttentionSetUpdates {
}
private ImmutableSet<HumanComment> getAllNewComments(
ChangeNotes changeNotes, ReviewInput input, CurrentUser currentUser)
throws UnprocessableEntityException {
ChangeNotes changeNotes, ReviewInput input, CurrentUser currentUser) {
Set<HumanComment> newComments = new HashSet<>();
if (input.comments != null) {
for (ReviewInput.CommentInput commentInput :