File tree Expand file tree Collapse file tree 4 files changed +38
-2
lines changed
spring-javaformat-eclipse/io.spring.javaformat.eclipse/src/io/spring/javaformat/eclipse/projectsettings
spring-javaformat-formatter-tests/src/test/resources
spring-javaformat-formatter/src/main/resources/io/spring/javaformat/formatter/eclipse Expand file tree Collapse file tree 4 files changed +38
-2
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ org.eclipse.jdt.core.formatter.alignment_for_assignment=0
114114org.eclipse.jdt.core.formatter.alignment_for_binary_expression =16
115115org.eclipse.jdt.core.formatter.alignment_for_compact_if =16
116116org.eclipse.jdt.core.formatter.alignment_for_conditional_expression =16
117- org.eclipse.jdt.core.formatter.alignment_for_enum_constants =0
117+ org.eclipse.jdt.core.formatter.alignment_for_enum_constants =16
118118org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer =16
119119org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header =0
120120org.eclipse.jdt.core.formatter.alignment_for_method_declaration =0
Original file line number Diff line number Diff line change 1+ package io.spring.javaformat.formatter;
2+
3+ public enum EnumWithManyUncommentedValues {
4+
5+ ONE("Long text value to force formatting of the enum's values across multiple lines"),
6+ TWO("Long text value to force formatting of the enum's values across multiple lines"),
7+ THREE("Long text value to force formatting of the enum's values across multiple lines"),
8+ FOUR("Long text value to force formatting of the enum's values across multiple lines"),
9+ FIVE("Long text value to force formatting of the enum's values across multiple lines"),
10+ SIX("Long text value to force formatting of the enum's values across multiple lines");
11+
12+ private String text;
13+
14+ EnumWithManyUncommentedValues(String text) {
15+ this.text = text;
16+ }
17+
18+ }
Original file line number Diff line number Diff line change 1+ package io.spring.javaformat.formatter;
2+
3+ public enum EnumWithManyUncommentedValues {
4+
5+ ONE("Long text value to force formatting of the enum's values across multiple lines"),
6+ TWO("Long text value to force formatting of the enum's values across multiple lines"),
7+ THREE("Long text value to force formatting of the enum's values across multiple lines"),
8+ FOUR("Long text value to force formatting of the enum's values across multiple lines"),
9+ FIVE("Long text value to force formatting of the enum's values across multiple lines"),
10+ SIX("Long text value to force formatting of the enum's values across multiple lines");
11+
12+ private String text;
13+
14+ EnumWithManyUncommentedValues(String text) {
15+ this.text = text;
16+ }
17+
18+ }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ core.formatter.alignment_for_compact_if=16
1717core.formatter.alignment_for_compact_loops =16
1818core.formatter.alignment_for_conditional_expression =16
1919core.formatter.alignment_for_conditional_expression_chain =0
20- core.formatter.alignment_for_enum_constants =0
20+ core.formatter.alignment_for_enum_constants =16
2121core.formatter.alignment_for_expressions_in_array_initializer =16
2222core.formatter.alignment_for_expressions_in_for_loop_header =0
2323core.formatter.alignment_for_logical_operator =16
You can’t perform that action at this time.
0 commit comments