StubTree: shorten the life of raw-types

This commit is contained in:
Tagir Valeev
2017-12-05 15:29:14 +07:00
parent 778c67a153
commit 0051e7ca35
@@ -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();
});
}