Skip to content

Commit

Permalink
build: Fix checkstyle violations
Browse files Browse the repository at this point in the history
  • Loading branch information
aalmiray committed Oct 27, 2022
1 parent d1da81c commit a5012d3
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -58,7 +58,6 @@
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Collectors;

import static java.util.Objects.requireNonNull;
import static java.util.stream.Collectors.toList;
Expand Down Expand Up @@ -375,7 +374,7 @@ Optional<GtIssue> findIssue(String owner, String name, int issueNumber) throws I
void addLabelToIssue(String owner, String name, GtIssue issue, GtLabel label) throws IOException {
logger.debug(RB.$("git.issue.label", label.getName(), issue.getNumber()));

Map<String,List<Integer>> labels = new LinkedHashMap<>();
Map<String, List<Integer>> labels = new LinkedHashMap<>();
List<Integer> list = labels.computeIfAbsent("labels", k -> new ArrayList<>());
list.addAll(issue.getLabels().stream().map(GtLabel::getId).collect(toList()));
list.add(label.getId());
Expand All @@ -386,7 +385,7 @@ void addLabelToIssue(String owner, String name, GtIssue issue, GtLabel label) th
void commentOnIssue(String owner, String name, GtIssue issue, String comment) throws IOException {
logger.debug(RB.$("git.issue.comment", issue.getNumber()));

Map<String,String> params = new LinkedHashMap<>();
Map<String, String> params = new LinkedHashMap<>();
params.put("body", comment);

api.commentIssue(params, owner, name, issue.getNumber());
Expand Down

0 comments on commit a5012d3

Please sign in to comment.