mirror of
https://github.com/jlengrand/github-api.git
synced 2026-04-04 15:50:52 +00:00
Restored backward compatibility
The signature of the method can change for the future, but it still has to return Label instances for older binaries
This commit is contained in:
@@ -52,7 +52,8 @@ public class GHIssue extends GHObject {
|
||||
protected String closed_at;
|
||||
protected int comments;
|
||||
protected String body;
|
||||
protected List<GHLabel> labels;
|
||||
// for backward compatibility with < 1.63, this collection needs to hold instances of Label, not GHLabel
|
||||
protected List<Label> labels;
|
||||
protected GHUser user;
|
||||
protected String title, html_url;
|
||||
protected GHIssue.PullRequest pull_request;
|
||||
@@ -126,7 +127,7 @@ public class GHIssue extends GHObject {
|
||||
if(labels == null){
|
||||
return Collections.emptyList();
|
||||
}
|
||||
return Collections.unmodifiableList(labels);
|
||||
return Collections.<GHLabel>unmodifiableList(labels);
|
||||
}
|
||||
|
||||
public Date getClosedAt() {
|
||||
|
||||
Reference in New Issue
Block a user