I migrated my project from Spring boot 1.5 to Spring boot 2.
After doing so I have an Missorted modifiers @NotNull private
on every field implementing the @NotNull annotation (from javax.validation.constraints.*
. This warning disappears when switching branch back to 1.5
I tried disabling all plugin's on intelij and removing the custom configuration i had for Code-style and Inspection. Only valid information found when searching on warning of this type of error is stating that Intelij is taking the "java language specifications" but when looking into those it seems like it should still be annotations followed by modifiers and not the other way around. (https://docs.oracle.com/javase/specs/jls/se11/html/jls-8.html#jls-8.3.1)
// This does not give a warning
private @NotNull String myString1;
// This does give a warning, wanting me to reformat to the one above
@NotNull
private String myString2;
I want to keep the formatting as in the 2nd example, it being more readable than the one above. Certainly when using multiple fields.