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

element types tryparse nullability #2752

Merged
merged 9 commits into from
Apr 9, 2024

Conversation

Kasdejong
Copy link
Member

⚠️ this branch depends on #2741. Merge that branch before reviewing this one

Description

Made all out variables of ElementModel/Types classes' TryParse methods nullable. Added annotations indicating they are not null when the method returns true.

Related issues

Closes #2749

Testing

Added unit tests to check if an invalid string indeed leads to a null value in the out variable

@Kasdejong Kasdejong changed the title Feature/element tryparse nullability element types tryparse nullability Mar 28, 2024
@Kasdejong Kasdejong requested a review from ewoutkramer April 9, 2024 07:43
@ewoutkramer ewoutkramer enabled auto-merge April 9, 2024 07:56
@ewoutkramer ewoutkramer merged commit eb05df7 into develop Apr 9, 2024
16 checks passed
@ewoutkramer ewoutkramer deleted the feature/element-tryparse-nullability branch April 9, 2024 08:09
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.

Element type parsers should return null, not default instances
2 participants