File tree 1 file changed +3
-2
lines changed
src/main/java/org/kohsuke/github
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ public class GHIssue extends GHObject {
52
52
protected String closed_at ;
53
53
protected int comments ;
54
54
protected String body ;
55
- protected List <GHLabel > labels ;
55
+ // for backward compatibility with < 1.63, this collection needs to hold instances of Label, not GHLabel
56
+ protected List <Label > labels ;
56
57
protected GHUser user ;
57
58
protected String title , html_url ;
58
59
protected GHIssue .PullRequest pull_request ;
@@ -126,7 +127,7 @@ public Collection<GHLabel> getLabels() throws IOException {
126
127
if (labels == null ){
127
128
return Collections .emptyList ();
128
129
}
129
- return Collections .unmodifiableList (labels );
130
+ return Collections .< GHLabel > unmodifiableList (labels );
130
131
}
131
132
132
133
public Date getClosedAt () {
You can’t perform that action at this time.
0 commit comments