refactor: remove deprecated api usage
This commit is contained in:
parent
ed99ce56fc
commit
8edfa48147
@ -49,7 +49,7 @@ abstract class AbstractFoldingBuilder extends FoldingBuilderEx implements Option
|
|||||||
public FoldingDescriptor @NotNull [] buildFoldRegions(@NotNull PsiElement root, @NotNull Document document, boolean quick) {
|
public FoldingDescriptor @NotNull [] buildFoldRegions(@NotNull PsiElement root, @NotNull Document document, boolean quick) {
|
||||||
|
|
||||||
if(quick || !isAssistance(root.getProject())) {
|
if(quick || !isAssistance(root.getProject())) {
|
||||||
return FoldingDescriptor.EMPTY;
|
return FoldingDescriptor.EMPTY_ARRAY;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<FoldingDescriptor> descriptors = new ArrayList<>();
|
List<FoldingDescriptor> descriptors = new ArrayList<>();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user