mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
IDEA-79271 Smart completion in ARM-try block produces trailing semicolon
This commit is contained in:
@@ -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};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user