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

csl.api: Fix wrong @NonNull annotation in methods of Language #8146

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

matthiasblaesing
Copy link
Contributor

The methods:

  • getOccurrencesFinder
  • getSemanticAnalyzer
  • getIndexSearcher
  • getOverridingMethods

can return null, if the implemention does not provide these services. The @nonnull annotation is thus wrong. As Language is not API the use-sites that relied on the non-null assertion were fixed and the annotations updated.

The methods:

  - getOccurrencesFinder
  - getSemanticAnalyzer
  - getIndexSearcher
  - getOverridingMethods

can return null, if the implemention does not provide these services.
The @nonnull annotation is thus wrong. As Language is not API the
use-sites that relied on the non-null assertion were fixed and the
annotations updated.
@matthiasblaesing matthiasblaesing added CSL [ci] enable web job Regression This used to work! ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) labels Jan 12, 2025
@matthiasblaesing matthiasblaesing added this to the NB25 milestone Jan 12, 2025
Copy link
Member

@mbien mbien left a comment

Choose a reason for hiding this comment

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

makes sense. Quickly checked the usages too.

@matthiasblaesing
Copy link
Contributor Author

@mbien thanks

@matthiasblaesing matthiasblaesing merged commit 6a4ee5a into apache:master Jan 15, 2025
31 checks passed
@matthiasblaesing matthiasblaesing deleted the csl-fix-3 branch January 15, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:dev-build [ci] produce a dev-build zip artifact (7 days expiration, see link on workflow summary page) CSL [ci] enable web job Regression This used to work!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants