[vcs-log] use isInstance method in filter and align chain calls

This commit is contained in:
Julia Beliaeva
2017-03-18 19:16:17 +03:00
parent 00300b930f
commit 74e0e821f0
@@ -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 {