If I have a class like below,
import lombok.AllArgsConstructor;
@AllArgsConstructor
class MyClass{
private String one;
private Integer three;
priv
The lombok document on Constructor, it says: (the last sentence of the third paragraph. Or you can find 'sort' with your browser's find feature)
The order of the parameters match the order in which the fields appear in your class.
Though the sentence is in the paragraph for @RequiredArgsConstructor
, the same rule looks to apply to @AllArgsConstructor
, too.
https://projectlombok.org/features/constructor