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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Default lombok.nonNull.exceptionType to JDK when targetting Java >= 9 #2400

Open
candrews opened this issue Mar 17, 2020 · 1 comment

Comments

@candrews
Copy link

Before submitting
馃憤

Describe the feature
Currently, the default value of the configuration setting lombok.nonNull.exceptionType is NullPointerException

This issue proposed that when targeting Java >= 9, the default value of lombok.nonNull.exceptionType be JDK

Describe the target audience
The current default, NullPointerException, generates if statements which results in lots of branches. Code coverage tools, such as JaCoCo, see these branches and will require tests for each one in order for the code to be considered covered.

JDK doesn't generate any branches. Therefore, code coverage tools "just work" the way developers expect.

Instead of requiring all developers to realize this situation, it would be better to have lombok automatically use the best default configuration based on the version of java targeted.

@jburrill
Copy link

This would be very beneficial for my team's work, as well. Thank you for the submittal, @candrews

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

2 participants