Skip to content

Commit b11499d

Browse files
committed
Improve formatting of records with a generic type parameter
Closes gh-348
1 parent d0264c1 commit b11499d

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple;
2+
3+
/**
4+
* Record with generic.
5+
*
6+
* @author Andy Wilkinson
7+
* @since 1.0.0
8+
*/
9+
public record SomeRecord<T>(T item) {
10+
11+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
package simple;
2+
3+
/**
4+
* Record with generic.
5+
*
6+
* @author Andy Wilkinson
7+
* @since 1.0.0
8+
*/
9+
public record SomeRecord <T> ( T item) {
10+
11+
}

Diff for: spring-javaformat/spring-javaformat-formatter/src/main/resources/io/spring/javaformat/formatter/eclipse/formatter.prefs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ core.formatter.insert_space_after_at_in_annotation_type_declaration=do not inser
134134
core.formatter.insert_space_after_binary_operator=insert
135135
core.formatter.insert_space_after_bitwise_operator=insert
136136
core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=do not insert
137-
core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
137+
core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=do not insert
138138
core.formatter.insert_space_after_closing_brace_in_block=insert
139139
core.formatter.insert_space_after_closing_paren_in_cast=insert
140140
core.formatter.insert_space_after_colon_in_assert=insert

0 commit comments

Comments
 (0)