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

feat: Added Nullability markup for some classes #1705

Closed
wants to merge 3 commits into from
Closed

feat: Added Nullability markup for some classes #1705

wants to merge 3 commits into from

Conversation

HavenDV
Copy link
Contributor

@HavenDV HavenDV commented Jun 26, 2024

Related to #1202

I think before that, #1202 should be split into two parts - marking the current code as is without changing the behavior
And after that, for the next big update, REQUIRED things should be replaced so that they are not null even in an empty document

This PR does not change behavior in places where null guards were provided or null was expected.
In places where there were NREs, ? were added. or other trivial fixes to avoid NRE
I'll continue with nullable markup if the change is accepted quickly enough

Copy link
Member

@baywet baywet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @HavenDV
Thanks for starting this! The work for the v2 is happening on release/2.0.0. Any chance you could rebase your branch (conflicts expected) and update the target of your PR please?

@HavenDV
Copy link
Contributor Author

HavenDV commented Jun 27, 2024

Hi @baywet

Thanks for the quick response. Is there any chance that this could be applied to the current version? This contains no breaking changes to the current implementation, it's just markup as is
If not then I can rebase this

@baywet
Copy link
Member

baywet commented Jun 27, 2024

This would be source breaking as anybody with an existing application with a dependency on the library would suddenly get compilation warning/errors (depending on the project configuration) instructing them to check for nullability at numerous places

@HavenDV HavenDV closed this by deleting the head repository Jun 27, 2024
@HavenDV
Copy link
Contributor Author

HavenDV commented Jun 27, 2024

@baywet Done - #1710

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

Successfully merging this pull request may close these issues.

2 participants