mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
StubTree: shorten the life of raw-types
This commit is contained in:
@@ -43,8 +43,8 @@ public class StubTree extends ObjectStubTree<StubElement<?>> {
|
||||
if (roots.length == 1) return super.getPlainListFromAllRoots();
|
||||
|
||||
return ContainerUtil.concat(roots, stub -> {
|
||||
final ObjectStubTree existingTree = stub.getUserData(STUB_TO_TREE_REFERENCE);
|
||||
//noinspection unchecked
|
||||
@SuppressWarnings("unchecked")
|
||||
final ObjectStubTree<StubElement<?>> existingTree = stub.getUserData(STUB_TO_TREE_REFERENCE);
|
||||
return existingTree != null ? existingTree.getPlainList() : new StubTree(stub, false).getPlainList();
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user