mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't delete java method param list (EA-104913 - ISE: StubBasedPsiElementBase.getRequiredStubOrPsiChild)
This commit is contained in:
@@ -75,6 +75,9 @@ public class MethodElement extends CompositeElement implements Constants {
|
||||
LeafElement semicolon = Factory.createSingleLeafElement(SEMICOLON, ";", 0, 1, treeCharTab, getManager());
|
||||
addInternal(semicolon, semicolon, null, Boolean.TRUE);
|
||||
}
|
||||
else if (child.getElementType() == PARAMETER_LIST) {
|
||||
throw new IllegalArgumentException("Deleting parameter list is prohibited");
|
||||
}
|
||||
else {
|
||||
super.deleteChildInternal(child);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user