mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-43962 Indentation error on deep nesting levels
1. Dummy methods are moved to the super class; 2. Green code policy is applied;
This commit is contained in:
@@ -70,7 +70,7 @@ public class SimpleJavaBlock extends AbstractJavaBlock {
|
||||
if (astNode != child && child != null) {
|
||||
offset = child.getTextRange().getStartOffset();
|
||||
}
|
||||
if (indent != null && !(myNode.getPsi() instanceof PsiFile) && child.getElementType() != ElementType.MODIFIER_LIST) {
|
||||
if (indent != null && !(myNode.getPsi() instanceof PsiFile) && child != null && child.getElementType() != ElementType.MODIFIER_LIST) {
|
||||
indent = Indent.getContinuationIndent();
|
||||
}
|
||||
//indent = FormatterEx.getInstance().getContinuationIndent();
|
||||
@@ -107,10 +107,12 @@ public class SimpleJavaBlock extends AbstractJavaBlock {
|
||||
}
|
||||
}
|
||||
|
||||
protected Wrap getReservedWrap(final IElementType elementType) {
|
||||
@Override
|
||||
public Wrap getReservedWrap(final IElementType elementType) {
|
||||
return myReservedWrap.get(elementType);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void setReservedWrap(final Wrap reservedWrap, final IElementType operationType) {
|
||||
myReservedWrap.put(operationType, reservedWrap);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user