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:
@@ -21,7 +21,6 @@ import com.intellij.openapi.fileTypes.StdFileTypes;
|
||||
import com.intellij.psi.codeStyle.CodeStyleSettings;
|
||||
import com.intellij.psi.formatter.FormatterUtil;
|
||||
import com.intellij.psi.impl.source.tree.ElementType;
|
||||
import com.intellij.psi.tree.IElementType;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -46,7 +45,7 @@ public class LabeledJavaBlock extends AbstractJavaBlock{
|
||||
result.add(createJavaBlock(child, mySettings, currentIndent, currentWrap, null));
|
||||
if (child.getElementType() == ElementType.COLON) {
|
||||
currentIndent = Indent.getNoneIndent();
|
||||
currentWrap =Wrap.createWrap(Wrap.ALWAYS, true);
|
||||
currentWrap =Wrap.createWrap(WrapType.ALWAYS, true);
|
||||
}
|
||||
}
|
||||
child = child.getTreeNext();
|
||||
@@ -62,13 +61,6 @@ public class LabeledJavaBlock extends AbstractJavaBlock{
|
||||
}
|
||||
}
|
||||
|
||||
protected Wrap getReservedWrap(final IElementType elementType) {
|
||||
return null;
|
||||
}
|
||||
|
||||
protected void setReservedWrap(final Wrap reservedWrap, final IElementType operationType) {
|
||||
}
|
||||
|
||||
@Override
|
||||
@NotNull
|
||||
public ChildAttributes getChildAttributes(final int newChildIndex) {
|
||||
|
||||
Reference in New Issue
Block a user