mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
nullability
GitOrigin-RevId: 5446c0eabf80ce7d5ffec11f800f3991552409d3
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3afd57746d
commit
95a38b49ef
+5
-5
@@ -417,9 +417,9 @@ public class CodeCompletionHandlerBase {
|
||||
}
|
||||
}
|
||||
|
||||
private AutoCompletionDecision shouldAutoComplete(@NotNull CompletionProgressIndicator indicator,
|
||||
@NotNull List<? extends LookupElement> items,
|
||||
@NotNull CompletionParameters parameters) {
|
||||
private @NotNull AutoCompletionDecision shouldAutoComplete(@NotNull CompletionProgressIndicator indicator,
|
||||
@NotNull List<? extends LookupElement> items,
|
||||
@NotNull CompletionParameters parameters) {
|
||||
if (!invokedExplicitly) {
|
||||
return AutoCompletionDecision.SHOW_LOOKUP;
|
||||
}
|
||||
@@ -662,7 +662,7 @@ public class CodeCompletionHandlerBase {
|
||||
return currentContext;
|
||||
}
|
||||
|
||||
private static void checkPsiTextConsistency(CompletionProcessEx indicator) {
|
||||
private static void checkPsiTextConsistency(@NotNull CompletionProcessEx indicator) {
|
||||
PsiFile psiFile = PsiUtilBase.getPsiFileInEditor(InjectedLanguageEditorUtil.getTopLevelEditor(indicator.getEditor()), indicator.getProject());
|
||||
if (psiFile != null) {
|
||||
if (Registry.is("ide.check.stub.text.consistency") ||
|
||||
@@ -832,7 +832,7 @@ public class CodeCompletionHandlerBase {
|
||||
caret.putUserData(CARET_PROCESSED, Boolean.TRUE);
|
||||
}
|
||||
|
||||
private static Caret getNextCaretToProcess(@NotNull Editor editor) {
|
||||
private static @Nullable Caret getNextCaretToProcess(@NotNull Editor editor) {
|
||||
for (Caret caret : editor.getCaretModel().getAllCarets()) {
|
||||
if (caret.getUserData(CARET_PROCESSED) == null) {
|
||||
return caret;
|
||||
|
||||
Reference in New Issue
Block a user