Remove declaration of exceptions that are never thrown
Signed-off-by: Edwin Kempin <ekempin@google.com> Change-Id: Iaa53ce323b1b6076aa9537d773f792d51a9afc0e
This commit is contained in:
@@ -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.
|
||||
|
@@ -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();
|
||||
|
@@ -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 :
|
||||
|
Reference in New Issue
Block a user