File tree 3 files changed +27
-1
lines changed
spring-javaformat-formatter/src/main/resources/io/spring/javaformat/formatter/eclipse
spring-javaformat-formatter-tests/src/test/resources
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change
1
+ public class SwitchExample {
2
+
3
+ protected boolean isIncludeBindingErrors(HttpServletRequest request, MediaType produces) {
4
+ switch (getErrorProperties().getIncludeBindingErrors()) {
5
+ case ALWAYS:
6
+ return true;
7
+ case ON_PARAM:
8
+ return getErrorsParameter(request);
9
+ default:
10
+ return false;
11
+ }
12
+ }
13
+
14
+ }
Original file line number Diff line number Diff line change
1
+ public class SwitchExample {
2
+ protected boolean isIncludeBindingErrors(HttpServletRequest request, MediaType produces) {
3
+ switch (getErrorProperties().getIncludeBindingErrors()) {
4
+ case ALWAYS:
5
+ return true;
6
+ case ON_PARAM:
7
+ return getErrorsParameter(request);
8
+ default:
9
+ return false;
10
+ }
11
+ }
12
+ }
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ core.formatter.indent_empty_lines=false
101
101
core.formatter.indent_statements_compare_to_block =true
102
102
core.formatter.indent_statements_compare_to_body =true
103
103
core.formatter.indent_switchstatements_compare_to_cases =true
104
- core.formatter.indent_switchstatements_compare_to_switch =false
104
+ core.formatter.indent_switchstatements_compare_to_switch =true
105
105
core.formatter.indentation.size =4
106
106
core.formatter.insert_new_line_after_annotation_on_enum_constant =insert
107
107
core.formatter.insert_new_line_after_annotation_on_field =insert
You can’t perform that action at this time.
0 commit comments