-
-
Notifications
You must be signed in to change notification settings - Fork 688
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Java optional codegen with final fields #1879
Conversation
I've cleaned up the public API of gherkin, messages and the html formatter, added null checks. Other then the comments above I don't have anything else that needs to be fixed while we're doing a new major version. |
Split the files and put the messages back in I think we're good, but let's squash merge this. The intermediate commits are very noisy. |
Wooot great work @mpkorstanje |
Co-authored-by: aurelien-reeves <aurelien.reeves@smartbear.com>
With cucumber/common#1879 `messages` now uses `Optional<T>` for optional types avoiding some unexpected null references. This resulted in some updating of `gherkin` and `html-formatter`. Additionally with this change the dependency on Jackson has been removed from `messages`. However we still have to serialize the message objects into json. So for now Jackson is shaded into `core` instead. And eventually we'll be able to spin this out to it's own module.
This PR supersedes #1858 with suggestions made by @mpkorstanje in #1858 (comment)
The code compiles, but the tests are failing because the classes don't have an empty constructor. I have enabled
<parameters>true</parameters>
for the compiler plugin as suggested in #1858 (comment), but it doesn't seem to help.