RFR: 1256: Provide a common method to get the corresponding csr issue
Guoxiong Li
gli at openjdk.java.net
Tue Nov 30 15:36:07 UTC 2021
On Tue, 30 Nov 2021 13:26:12 GMT, Guoxiong Li <gli at openjdk.org> wrote:
> Hi all,
>
> This patch adds the common methods `Issue#linksWithRelationships`, `Issue#csrLink` and `Issue#csrIssue` and refactors the code to reduce the loop nested statements by using these common methods.
>
> All the existing tests passed.
>
> Best Regards,
> -- Guoxiong
> I'm not sure there will ever be a need to filter links with multiple different relationships. Do you know of any such case that you are planning to convert?
It can be used in the method `Backports#findMainIssue`:
// method Backports#findMainIssue
var links = issue.linksWithRelationships(List.of("backported by", "backport of"));
But If we use the stream api, it is not need now.
-------------
PR: https://git.openjdk.java.net/skara/pull/1248
More information about the skara-dev
mailing list