Skip to content

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

Merged
matthiasblaesing merged 1 commit intoapache:masterfrom
matthiasblaesing:csl-fix-3
Jan 15, 2025
Merged

csl.api: Fix wrong @NonNull annotation in methods of Language#8146
matthiasblaesing merged 1 commit intoapache:masterfrom
matthiasblaesing:csl-fix-3

Conversation

@matthiasblaesing
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

@mbien thanks

@matthiasblaesing matthiasblaesing merged commit 6a4ee5a into apache:master Jan 15, 2025
@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