Commit 15b27a26 authored by Pavel Dolgov's avatar Pavel Dolgov
Browse files

Java: Strike deprecated annotation options in completion dialog (IDEA-202314)

parent 03e4f377
Showing with 3 additions and 1 deletion
+3 -1
......@@ -619,7 +619,9 @@ public class JavaCompletionContributor extends CompletionContributor {
if (Comparing.equal(existingAttr.getName(), attrName) ||
PsiAnnotation.DEFAULT_REFERENCED_METHOD_NAME.equals(attrName) && existingAttr.getName() == null) continue methods;
}
LookupElementBuilder element = LookupElementBuilder.createWithIcon(method).withInsertHandler(new InsertHandler<LookupElement>() {
LookupElementBuilder element = LookupElementBuilder.createWithIcon(method)
.withStrikeoutness(PsiImplUtil.isDeprecated(method))
.withInsertHandler(new InsertHandler<LookupElement>() {
@Override
public void handleInsert(@NotNull InsertionContext context, @NotNull LookupElement item) {
final Editor editor = context.getEditor();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment