simplify, do not wrap on anything but enum constants: IDEA-CR-29840

This commit is contained in:
Roman.Ivanov
2018-06-05 10:32:19 +07:00
parent a1a94a33d5
commit 8e9ab59fc8
@@ -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) {