mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
SSR: keep order of modifiers when replacing annotation
This commit is contained in:
+1
-1
@@ -269,7 +269,7 @@ public class JavaReplaceHandler extends StructuralReplaceHandler {
|
||||
if (firstChild instanceof PsiModifierList) {
|
||||
final PsiModifierList modifierList = (PsiModifierList)firstChild;
|
||||
for (PsiElement child : modifierList.getChildren()) {
|
||||
elementParent.add(child);
|
||||
elementParent.addBefore(child, elementToReplace);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user