Skip to content
This repository was archived by the owner on Apr 26, 2026. It is now read-only.
This repository was archived by the owner on Apr 26, 2026. It is now read-only.

Migrate to JSpecify annotations #399

@joshuasing

Description

@joshuasing

Confirmation

  • I have checked for similar issues.

Problem

JSpecify is a set of standard annotations for Java static analysis and is being developed by Google, JetBrains, Meta, SonarQube, and more.

Suggested solution

We should eventually migrate to using JSpecify annotations instead of the JetBrains @NotNull and @Nullable annotations, as JSpecify may eventually become more widely supported by editors and static analysis tools.

User guide (draft): https://jspecify.dev/docs/user-guide/
Specification (draft): https://jspecify.dev/docs/spec/

The overall change will be adding @NullMarked to all classes, removing all JetBrains @NotNull annotations and replacing all JetBrains @Nullable annotations with the JSpecify @Nullable annotaion.

Additional information

No response

Metadata

Metadata

Labels

contributor: needs feedbackFeedback is wanted before these changes are mergedsize: XLstatus: futureThis might be done in the futuretype: enhancementThis is a feature request or a pull request that adds a featuretype: refactorThis refactors existing code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions