mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] use isInstance method in filter and align chain calls
This commit is contained in:
@@ -98,8 +98,10 @@ public class VcsLogTabsWatcher implements Disposable {
|
||||
|
||||
@NotNull
|
||||
public Set<String> getTabNames() {
|
||||
return myRefresher.getLogWindows().stream().filter(w -> w instanceof VcsLogTab).
|
||||
map(w -> ((VcsLogTab)w).myTabName).collect(Collectors.toSet());
|
||||
return myRefresher.getLogWindows().stream()
|
||||
.filter(VcsLogTab.class::isInstance)
|
||||
.map(w -> ((VcsLogTab)w).myTabName)
|
||||
.collect(Collectors.toSet());
|
||||
}
|
||||
|
||||
public class VcsLogTab extends PostponableLogRefresher.VcsLogWindow {
|
||||
|
||||
Reference in New Issue
Block a user