IDEA-85760 completion menu shouldn't offer null where it makes no sense

This commit is contained in:
peter
2012-05-29 18:11:53 +02:00
parent a0c8898725
commit 10d695a002
3 changed files with 8 additions and 1 deletions
@@ -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>
}
}
@@ -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(); }