Micronaut 5 has migrated its internal APIs to use JSpecify nullability annotations, replacing the framework's own `io.micronaut.core.annotation.Nullable` and `NonNull` annotations. Developers upgrading need to update their code to use `org.jspecify.annotations.Nullable` and `org.jspecify.annotations.NonNull`. The post also covers syntax differences for fully qualified types and inner classes, where the annotation placement changes under JSpecify rules.

1m read timeFrom micronaut.io
Post cover image
Table of contents
Fully Qualified Types

Sort: