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

incorrect formatting for a record + @DefaultValue #236

Open
wind57 opened this issue Sep 30, 2022 · 1 comment
Open

incorrect formatting for a record + @DefaultValue #236

wind57 opened this issue Sep 30, 2022 · 1 comment

Comments

@wind57
Copy link
Contributor

wind57 commented Sep 30, 2022

If I have a very simple record in the form:

public record TestRecord(@DefaultValue({"123", "456" }) Set<Integer> knownSecurePorts){
}

this in spring-cloud-kubernetes that uses 4.0.0-SNAPSHOT. and run mvn compile for it, it is formatted like this:

public record TestRecord(@DefaultValue( {
		"123", "456" }) Set<Integer> knownSecurePorts){
}

So the next time I try to issue mvn compile, it will fail.

@wind57
Copy link
Contributor Author

wind57 commented Sep 30, 2022

as a work-around, I can do // @formatter:off...

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

2 participants