mirror of
https://github.com/apple/pkl.git
synced 2026-01-13 15:13:38 +01:00
Replace JSR 305 based nullness annotations with JSpecify annotations #219
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @odenix on GitHub (Oct 16, 2024).
https://github.com/jspecify/jspecify
https://jspecify.dev/
Motivation:
Risk assessment:
Spring Framework will switch from JSR 305 to JSpecify in its next major release (7.0).
Google’s internal Guava version has been using JSpecify for years.
Changes:
Result:
A future Java version will likely support nullable types (JEP Draft). Until that Java version becomes Pkl’s baseline, JSpecify will remain the best way to handle nullness in Pkl’s Java codebase.
@bioball commented on GitHub (Oct 17, 2024):
Agree; would be good to move to JSpecify. Happy to accept a PR for this.
@odenix commented on GitHub (Oct 17, 2024):
I’ll send a PR after 0.27 is out.