mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
LVTI: disable split declaration & assignment
This commit is contained in:
@@ -79,6 +79,9 @@ public class SplitDeclarationAction extends PsiElementBaseIntentionAction {
|
||||
if (declaredElements.length == 1) {
|
||||
PsiLocalVariable var = (PsiLocalVariable)declaredElements[0];
|
||||
if (var.getInitializer() == null) return false;
|
||||
if (var.getTypeElement().isInferredType()) {
|
||||
return false;
|
||||
}
|
||||
PsiElement parent = decl.getParent();
|
||||
if (parent instanceof PsiForStatement) {
|
||||
String varName = var.getName();
|
||||
|
||||
Reference in New Issue
Block a user