Using Gradle spotless 7.0.0.BETA4 I see wrong handling of formatAnnotations for code like this:
@Valid
public TemplateDTO getMetadata() {
return metadata;
}
Since Jakarta Validation @Valid is annotated with TYPE_USE, it should be changed to:
@Valid public TemplateDTO getMetadata() {
return metadata;
}
I will open a PR shortly fixing this.