RFR: 1256: Use stream api to simplify the csr issue lookup

Erik Joelsson erikj at openjdk.java.net
Tue Nov 30 23:06:34 UTC 2021


On Tue, 30 Nov 2021 15:33:29 GMT, Guoxiong Li <gli at openjdk.org> wrote:

> > 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 needed now.

Ah, right good point. I forgot about the two variants for every link type in JBS.

-------------

PR: https://git.openjdk.java.net/skara/pull/1248


More information about the skara-dev mailing list