Randgalt / record-builder

Record builder generator for Java records
Apache License 2.0
756 stars 55 forks source link

Support NotNull, NoNull, etc. #39

Closed Randgalt closed 3 years ago

Randgalt commented 3 years ago

Now that we have easier to use options for RecordBuilder, add an option that recognizes annotations that are named "notnull", "nonull", etc. and validate that null is not used in the builder. Make this support opt-in - i.e. the option should be false by default.

See discussion here: https://github.com/Randgalt/record-builder/discussions/32

Randgalt commented 3 years ago

Done by https://github.com/Randgalt/record-builder/pull/40