Skip to content
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

[FEATURE] Make lombok process jakarta.validation.NotNull and other jakarta null-prohibiting annotations as @NonNull #3645

Open
Evemose opened this issue Apr 1, 2024 · 0 comments

Comments

@Evemose
Copy link

Evemose commented Apr 1, 2024

Make lombok process jakarta.validation.NotNull and other jakarta null-prohibiting annotations as NonNull annotaion

Problem
Its common issue for developers working with validation annotations in jakarta/javax packages to have to duplicate nullity annotations, which leads to potential inconsistencies due to unneccesary code duplication.

Solution
Treat annotations that prohibit null values by specification same as NonNull annotaion

Target audience
Vast majority of web developers deal with jakarta validation annotations. Server side development is a most common use of Java, so feature would be helpful for virtually every Java developer.

Potential issues
Neccesity to keep track of jakarta specification updates and custom annotations from validation providers like Hibernate

Context
If lombok team would approve such feature, I could implement it myself, but I would like to know if maintainers of project think whether it would be expedient or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant