spring-cloud-build icon indicating copy to clipboard operation
spring-cloud-build copied to clipboard

incorrect formatting for a record + @DefaultValue

Open wind57 opened this issue 3 years ago • 1 comments

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 avatar Sep 30 '22 19:09 wind57

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

wind57 avatar Sep 30 '22 19:09 wind57