From 9fa36be8b090d0d3424be6beb103315eb9343a20 Mon Sep 17 00:00:00 2001 From: peter Date: Fri, 20 Sep 2013 11:52:37 +0200 Subject: [PATCH] CompletionConfidence: don't force API users to implement unused method --- .../intellij/codeInsight/completion/CompletionConfidence.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionConfidence.java b/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionConfidence.java index ab7b43c07cc8..df14ef0b56e4 100644 --- a/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionConfidence.java +++ b/platform/lang-api/src/com/intellij/codeInsight/completion/CompletionConfidence.java @@ -29,7 +29,9 @@ public abstract class CompletionConfidence { * @deprecated not used anymore, only the user controls whether the lookup will be focused */ @NotNull - public abstract ThreeState shouldFocusLookup(@NotNull CompletionParameters parameters); + public ThreeState shouldFocusLookup(@NotNull CompletionParameters parameters) { + return ThreeState.UNSURE; + } /** * This method is invoked first when a completion autopopup is scheduled. Extensions are able to cancel this completion process based on location.