-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AllArgsConstructor should mark constructor parameters with same annotations that are used for fields #1730
Comments
Problem is that an annotation may be valid for fields, but not for method parameters. So such a behavior must definitively be made "opt-in" individually for each field/parameter/annotation via the |
@janrieke Sure, with The main use case are binding annotations (Spring I've never seen any other annotation with a simple name
or just
should be no problem, even if Lombok can't determine the FQN. |
Hey @janrieke , @Maaartinus! |
Did not test it, but this should work in 1.18.4 using the config option |
Thanks @janrieke , it does work! |
Assume a case
It generates a constructor
But when
myService
is annotated with@Qualifier
, for example, it isn't passed to constructor parameters.I'd like it to be
The text was updated successfully, but these errors were encountered: