Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e1b0249

Browse filesBrowse files
committed
Change how the labels list is transformed into a comma separated string.
1 parent b8a8522 commit e1b0249
Copy full SHA for e1b0249

File tree

Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-2
lines changed

‎src/main/java/org/kohsuke/github/GHIssueQueryBuilder.java

Copy file name to clipboardExpand all lines: src/main/java/org/kohsuke/github/GHIssueQueryBuilder.java
+1-2Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import java.util.ArrayList;
44
import java.util.Date;
55
import java.util.List;
6-
import java.util.stream.Collectors;
76

87
public abstract class GHIssueQueryBuilder extends GHQueryBuilder<GHIssue> {
98
private final List<String> labels = new ArrayList<>();
@@ -34,7 +33,7 @@ public GHIssueQueryBuilder state(GHIssueState state) {
3433
public GHIssueQueryBuilder label(String label) {
3534
if (label != null && !label.trim().isEmpty()) {
3635
labels.add(label);
37-
req.with("labels", labels.stream().collect(Collectors.joining(",")));
36+
req.with("labels", String.join(",", labels));
3837
}
3938
return this;
4039
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.