mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-10-06 06:21:16 +07:00
java-psi: remove unnecessary read action
GitOrigin-RevId: 0b8e888276dd5f6ac61f26c654edcb1cf2e7b9f1
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a98eb623e0
commit
6b993dcdf8
@@ -4,7 +4,6 @@ package com.intellij.psi.impl.source;
|
||||
import com.intellij.lang.ASTNode;
|
||||
import com.intellij.navigation.ItemPresentation;
|
||||
import com.intellij.navigation.ItemPresentationProviders;
|
||||
import com.intellij.openapi.application.ReadAction;
|
||||
import com.intellij.openapi.ui.Queryable;
|
||||
import com.intellij.psi.*;
|
||||
import com.intellij.psi.impl.ElementPresentationUtil;
|
||||
@@ -203,13 +202,13 @@ public class PsiMethodImpl extends JavaStubPsiElement<PsiMethodStub> implements
|
||||
PsiParameterList list = getStubOrPsiChild(JavaStubElementTypes.PARAMETER_LIST);
|
||||
if (list == null) {
|
||||
return CachedValuesManager.getCachedValue(this, () -> {
|
||||
LightParameterListBuilder lightList = new LightParameterListBuilder(this.getManager(), this.getLanguage()) {
|
||||
LightParameterListBuilder lightList = new LightParameterListBuilder(getManager(), getLanguage()) {
|
||||
@Override
|
||||
public String getText() {
|
||||
return null;
|
||||
}
|
||||
};
|
||||
PsiClass aClass = this.getContainingClass();
|
||||
PsiClass aClass = getContainingClass();
|
||||
if (aClass != null) {
|
||||
PsiRecordComponent[] recordComponents = aClass.getRecordComponents();
|
||||
for (PsiRecordComponent component : recordComponents) {
|
||||
@@ -347,7 +346,7 @@ public class PsiMethodImpl extends JavaStubPsiElement<PsiMethodStub> implements
|
||||
|
||||
@Override
|
||||
public @NotNull SearchScope getUseScope() {
|
||||
return ReadAction.compute(() -> PsiImplUtil.getMemberUseScope(this));
|
||||
return PsiImplUtil.getMemberUseScope(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user