add a comment (following IDEA-CR-30838)

This commit is contained in:
Dmitry Batrak
2018-03-20 19:27:14 +03:00
parent b8de320eb6
commit 3405ec6b36
@@ -73,6 +73,7 @@ public class FoldingModelImpl implements FoldingModelEx, PrioritizedInternalDocu
return new RMNode<FoldRegionImpl>(this, key, start, end, greedyToLeft, greedyToRight, stickingToRight) {
@Override
protected Getter<FoldRegionImpl> createGetter(@NotNull FoldRegionImpl region) {
// Fold region shouldn't disappear even if no one holds a reference to it, so folding tree needs a strong reference to a region
return region;
}
};