mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-14 18:05:27 +07:00
RegExp Search/Replace inspection: minor optimization when no patterns specified
GitOrigin-RevId: 07442333808bce5d7b6ea6e3cb4f66306792854b
This commit is contained in:
committed by
intellij-monorepo-bot
parent
2e64a53439
commit
1c2ba45599
@@ -83,6 +83,7 @@ public class CustomRegExpInspection extends LocalInspectionTool implements Dynam
|
||||
|
||||
@Override
|
||||
public ProblemDescriptor @Nullable [] checkFile(@NotNull PsiFile file, @NotNull InspectionManager manager, boolean isOnTheFly) {
|
||||
if (myConfigurations.isEmpty()) return null;
|
||||
final Document document = file.getViewProvider().getDocument();
|
||||
final CharSequence text = document.getCharsSequence();
|
||||
final FindManager findManager = FindManager.getInstance(file.getProject());
|
||||
|
||||
Reference in New Issue
Block a user