apple / pkl

A configuration as code language with rich validation and tooling.
https://pkl-lang.org
Apache License 2.0
10.36k stars 280 forks source link

Replace JSR 305 based nullness annotations with JSpecify annotations #698

Open translatenix opened 1 month ago

translatenix commented 1 month ago

https://github.com/jspecify/jspecify https://jspecify.dev/

Motivation:

Risk assessment:

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 1 month ago

Agree; would be good to move to JSpecify. Happy to accept a PR for this.

translatenix commented 1 month ago

I’ll send a PR after 0.27 is out.