mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
simplify, do not wrap on anything but enum constants: IDEA-CR-29840
This commit is contained in:
@@ -1051,10 +1051,7 @@ public abstract class AbstractJavaBlock extends AbstractBlock implements JavaBlo
|
||||
final WrappingStrategy wrappingStrategy = new WrappingStrategy(Wrap.createWrap(getWrapType(mySettings.ENUM_CONSTANTS_WRAP), true)) {
|
||||
@Override
|
||||
protected boolean shouldWrap(IElementType type) {
|
||||
return type != JavaTokenType.COMMA
|
||||
&& type != JavaTokenType.SEMICOLON
|
||||
&& type != JavaTokenType.END_OF_LINE_COMMENT
|
||||
&& type != JavaTokenType.C_STYLE_COMMENT;
|
||||
return type == JavaElementType.ENUM_CONSTANT;
|
||||
}
|
||||
};
|
||||
while (child != null) {
|
||||
|
||||
Reference in New Issue
Block a user