spring-io / spring-javaformat

Apache License 2.0
795 stars 110 forks source link

Improve formatting of annotated enum values #393

Open wilkinsona opened 9 months ago

wilkinsona commented 9 months ago

At the moment, the formatter formats things like this

enum State {

    @JsonProperty("open")
    OPEN, @JsonProperty("closed")
    CLOSED

}

Something like this would be better:

enum State {

    @JsonProperty("open")
    OPEN,

    @JsonProperty("closed")
    CLOSED

}