mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
inplace rename: remove assertion as the command name should point to initial name and should exist even when no valid element remains after invalid rename (e.g. to empty name)
This commit is contained in:
-5
@@ -281,11 +281,6 @@ public class VariableInplaceRenamer extends InplaceRefactoring {
|
||||
|
||||
@Override
|
||||
protected String getCommandName() {
|
||||
PsiNamedElement variable = getVariable();
|
||||
if (variable == null) {
|
||||
LOG.error(myElementToRename);
|
||||
return "Rename";
|
||||
}
|
||||
return RefactoringBundle.message("renaming.command.name", myInitialName);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user