IDEA-79271 Smart completion in ARM-try block produces trailing semicolon

This commit is contained in:
peter
2011-12-27 16:00:13 +01:00
parent ad1fb90d09
commit 630cfaa379
6 changed files with 9 additions and 34 deletions
@@ -444,7 +444,7 @@ public class ExpectedTypesProvider {
@Override public void visitVariable(PsiVariable variable) {
PsiType type = variable.getType();
ExpectedTypeInfoImpl info = createInfoImpl(type, ExpectedTypeInfo.TYPE_OR_SUBTYPE, type,
TailType.SEMICOLON);
variable instanceof PsiResourceVariable ? TailType.NONE : TailType.SEMICOLON);
info.expectedName = getPropertyName(variable);
myResult = new ExpectedTypeInfo[]{info};
}