File tree 4 files changed +38
-2
lines changed
spring-javaformat-formatter/src/main/resources/io/spring/javaformat/formatter/eclipse
spring-javaformat-formatter-tests/src/test/resources
spring-javaformat-eclipse/io.spring.javaformat.eclipse/src/io/spring/javaformat/eclipse/projectsettings 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
114
114
org.eclipse.jdt.core.formatter.alignment_for_binary_expression =16
115
115
org.eclipse.jdt.core.formatter.alignment_for_compact_if =16
116
116
org.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
118
118
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer =16
119
119
org.eclipse.jdt.core.formatter.alignment_for_expressions_in_for_loop_header =0
120
120
org.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
17
17
core.formatter.alignment_for_compact_loops =16
18
18
core.formatter.alignment_for_conditional_expression =16
19
19
core.formatter.alignment_for_conditional_expression_chain =0
20
- core.formatter.alignment_for_enum_constants =0
20
+ core.formatter.alignment_for_enum_constants =16
21
21
core.formatter.alignment_for_expressions_in_array_initializer =16
22
22
core.formatter.alignment_for_expressions_in_for_loop_header =0
23
23
core.formatter.alignment_for_logical_operator =16
You can’t perform that action at this time.
0 commit comments