mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-85760 completion menu shouldn't offer null where it makes no sense
This commit is contained in:
@@ -148,7 +148,8 @@ public class JavaCompletionData extends JavaAwareCompletionData{
|
||||
not(
|
||||
or(psiElement(PsiTypeCastExpression.class),
|
||||
psiElement(PsiSwitchLabelStatement.class),
|
||||
psiElement(PsiExpressionStatement.class)
|
||||
psiElement(PsiExpressionStatement.class),
|
||||
psiElement(PsiPrefixExpression.class)
|
||||
)
|
||||
)
|
||||
)),
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class Foo {
|
||||
{
|
||||
++nu<caret>
|
||||
}
|
||||
}
|
||||
+1
@@ -539,6 +539,7 @@ public class ListUtils {
|
||||
}
|
||||
|
||||
public void testNoThisInComment() throws Throwable { doAntiTest() }
|
||||
public void testIncNull() throws Throwable { doAntiTest() }
|
||||
|
||||
public void testLastExpressionInFor() throws Throwable { doTest(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user