Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting java record with generics adds a whitespace before a bracket #348

Closed
lazystone opened this issue Dec 1, 2022 · 1 comment
Closed
Assignees
Milestone

Comments

@lazystone
Copy link

Spring format adds a white space between > and (:

private record LookupResult<T> (T match, boolean hasMore) {
	}

And then checkstyle fails with

'(' is preceded with whitespace.
@philwebb philwebb added this to the 0.0.x milestone Dec 2, 2022
@wilkinsona
Copy link
Contributor

This behavior is controlled by org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters. To avoid adding the whitespace we should set it to do not insert.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants