mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-54765 Code Style -> Order of Members should have extra items for statics
Refactoring-based class members manipulation is corrected
This commit is contained in:
@@ -407,7 +407,13 @@ public class ClassElement extends CompositeElement implements Constants {
|
||||
return nextSibling == null ? aClass.getLBrace().getNextSibling() : nextSibling;
|
||||
}
|
||||
else {
|
||||
return aClass.getLBrace().getNextSibling();
|
||||
// The main idea is to avoid to anchor to 'white space' element because that causes reformatting algorithm
|
||||
// to perform incorrectly. The algorithm is encapsulated at PostprocessReformattingAspect.doPostponedFormattingInner().
|
||||
PsiElement result = aClass.getLBrace().getNextSibling();
|
||||
while (result instanceof PsiWhiteSpace) {
|
||||
result = result.getNextSibling();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
lastMember = child;
|
||||
|
||||
Reference in New Issue
Block a user