mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] use ContainerUtil.filter instead of streams
This commit is contained in:
@@ -66,7 +66,7 @@ public class RefsModel implements VcsLogRefs {
|
||||
@NotNull
|
||||
public Collection<VcsRef> branchesToCommit(int index) {
|
||||
Collection<VcsRef> refs = refsToCommit(index);
|
||||
return refs.stream().filter(ref -> ref.getType().isBranch()).collect(Collectors.toList());
|
||||
return ContainerUtil.filter(refs, ref -> ref.getType().isBranch());
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user