1717import org .gitlab4j .api .models .IssuesStatistics ;
1818import org .gitlab4j .api .models .IssuesStatisticsFilter ;
1919import org .gitlab4j .api .models .LinkType ;
20+ import org .gitlab4j .api .models .LinkedIssue ;
2021import org .gitlab4j .api .models .MergeRequest ;
2122import org .gitlab4j .api .models .Participant ;
2223import org .gitlab4j .api .models .TimeStats ;
@@ -834,7 +835,7 @@ public Stream<MergeRequest> getClosedByMergeRequestsStream(Object projectIdOrPat
834835 * @return a list of related issues of a given issue, sorted by the relationship creation datetime (ascending)
835836 * @throws GitLabApiException if any exception occurs
836837 */
837- public List <Issue > getIssueLinks (Object projectIdOrPath , Long issueIid ) throws GitLabApiException {
838+ public List <LinkedIssue > getIssueLinks (Object projectIdOrPath , Long issueIid ) throws GitLabApiException {
838839 return (getIssueLinks (projectIdOrPath , issueIid , getDefaultPerPage ()).all ());
839840 }
840841
@@ -852,8 +853,8 @@ public List<Issue> getIssueLinks(Object projectIdOrPath, Long issueIid) throws G
852853 * @return a Pager of related issues of a given issue, sorted by the relationship creation datetime (ascending)
853854 * @throws GitLabApiException if any exception occurs
854855 */
855- public Pager <Issue > getIssueLinks (Object projectIdOrPath , Long issueIid , int itemsPerPage ) throws GitLabApiException {
856- return (new Pager <Issue >(this , Issue .class , itemsPerPage , null ,
856+ public Pager <LinkedIssue > getIssueLinks (Object projectIdOrPath , Long issueIid , int itemsPerPage ) throws GitLabApiException {
857+ return (new Pager <LinkedIssue >(this , LinkedIssue .class , itemsPerPage , null ,
857858 "projects" , getProjectIdOrPath (projectIdOrPath ), "issues" , issueIid , "links" ));
858859 }
859860
@@ -870,7 +871,7 @@ public Pager<Issue> getIssueLinks(Object projectIdOrPath, Long issueIid, int ite
870871 * @return a Stream of related issues of a given issue, sorted by the relationship creation datetime (ascending)
871872 * @throws GitLabApiException if any exception occurs
872873 */
873- public Stream <Issue > getIssueLinksStream (Object projectIdOrPath , Long issueIid ) throws GitLabApiException {
874+ public Stream <LinkedIssue > getIssueLinksStream (Object projectIdOrPath , Long issueIid ) throws GitLabApiException {
874875 return (getIssueLinks (projectIdOrPath , issueIid , getDefaultPerPage ()).stream ());
875876 }
876877
0 commit comments