Skip to content

Commit 17f65dd

Browse files
committed
Wrap annotation attributes
Update the formatter settings to wrap annotation attributes. Closes gh-78
1 parent 579db04 commit 17f65dd

File tree

2 files changed

+3
-2
lines changed
  • spring-javaformat/spring-javaformat-formatter/src

2 files changed

+3
-2
lines changed

spring-javaformat/spring-javaformat-formatter/src/main/resources/io/spring/javaformat/formatter/formatter.prefs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ org.eclipse.jdt.core.formatter.align_variable_declarations_on_columns=false
55
org.eclipse.jdt.core.formatter.align_with_spaces=false
66
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
77
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
8-
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=0
8+
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_annotation=16
99
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
1010
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
1111
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16

spring-javaformat/spring-javaformat-formatter/src/test/resources/expected/typical.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ import org.springframework.core.annotation.AliasFor;
4949
@Inherited
5050
@SpringBootConfiguration
5151
@EnableAutoConfiguration
52-
@ComponentScan(excludeFilters = @Filter(type = FilterType.CUSTOM, classes = TypeExcludeFilter.class))
52+
@ComponentScan(excludeFilters = @Filter(type = FilterType.CUSTOM,
53+
classes = TypeExcludeFilter.class))
5354
public @interface SpringBootApplication {
5455

5556
/**

0 commit comments

Comments
 (0)