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

Purge all compiler warnings #1601

Merged
merged 2 commits into from
Mar 7, 2024
Merged

Purge all compiler warnings #1601

merged 2 commits into from
Mar 7, 2024

Conversation

borrrden
Copy link
Member

@borrrden borrrden commented Mar 7, 2024

The vast majority are simply the compiler being confused about the signature saying "not null" and then an immediate check if the value is null or not. It errs on the safe side and issues warnings about a possible null value on some platforms but not others. The compiler will let you know if you are potentially passing a null to a method that cannot accept it, and so the null checks are all less important now.

Also fill in missing doc comments and update all bad refs between doc pages (including changes to gen_defaults.py)

The vast majority are simply the compiler being confused about the signature saying "not null" and then an immediate check if the value is null or not.  It errs on the safe side and issues warnings about a possible null value on some platforms but not others.  The compiler will let you know if you are potentially passing a null to a method that cannot accept it, and so the null checks are all less important now.

Also fill in missing doc comments and update all bad refs between doc pages (including changes to gen_defaults.py)
@borrrden borrrden requested review from bmeike and pasin March 7, 2024 03:02
Copy link
Contributor

@bmeike bmeike left a comment

Choose a reason for hiding this comment

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

Interesting. I keep a lot of these nullchecks around in API methods because not all of the Java compilers we support will tell you about the annotations.

@borrrden borrrden merged commit 5a55b45 into master Mar 7, 2024
1 check was pending
@borrrden borrrden deleted the fix/purge_warnings branch March 7, 2024 20:52
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.

None yet

2 participants