mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
name foreach parameter as local variable to prevent misunderstanding
This commit is contained in:
+3
@@ -54,6 +54,9 @@ public class JavaRefactoringElementDescriptionProvider implements ElementDescrip
|
||||
}
|
||||
|
||||
if (element instanceof PsiParameter) {
|
||||
if (((PsiParameter)element).getDeclarationScope() instanceof PsiForeachStatement) {
|
||||
return RefactoringBundle.message("local.variable.description", CommonRefactoringUtil.htmlEmphasize(((PsiVariable)element).getName()));
|
||||
}
|
||||
return RefactoringBundle.message("parameter.description", CommonRefactoringUtil.htmlEmphasize(((PsiParameter)element).getName()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user