diff options
Diffstat (limited to 'java/com/google/gerrit/server/restapi/change/PostReview.java')
-rw-r--r-- | java/com/google/gerrit/server/restapi/change/PostReview.java | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/java/com/google/gerrit/server/restapi/change/PostReview.java b/java/com/google/gerrit/server/restapi/change/PostReview.java index d06766dba0..845f584578 100644 --- a/java/com/google/gerrit/server/restapi/change/PostReview.java +++ b/java/com/google/gerrit/server/restapi/change/PostReview.java @@ -806,8 +806,7 @@ public class PostReview private static void ensureRangesDoNotOverlap( String commentPath, List<FixReplacementInfo> fixReplacementInfos) throws BadRequestException { List<Range> sortedRanges = - fixReplacementInfos - .stream() + fixReplacementInfos.stream() .map(fixReplacementInfo -> fixReplacementInfo.range) .sorted() .collect(toList()); @@ -1078,17 +1077,13 @@ public class PostReview } private Set<CommentSetEntry> readExistingComments(ChangeContext ctx) throws OrmException { - return commentsUtil - .publishedByChange(ctx.getDb(), ctx.getNotes()) - .stream() + return commentsUtil.publishedByChange(ctx.getDb(), ctx.getNotes()).stream() .map(CommentSetEntry::create) .collect(toSet()); } private Set<CommentSetEntry> readExistingRobotComments(ChangeContext ctx) throws OrmException { - return commentsUtil - .robotCommentsByChange(ctx.getNotes()) - .stream() + return commentsUtil.robotCommentsByChange(ctx.getNotes()).stream() .map(CommentSetEntry::create) .collect(toSet()); } @@ -1313,8 +1308,7 @@ public class PostReview if (!reduced.isEmpty()) { throw new ResourceConflictException( "Cannot reduce vote on labels for closed change: " - + reduced - .stream() + + reduced.stream() .map(PatchSetApproval::getLabel) .distinct() .sorted() |