Migrate to JSpecify annotations for nullability constraints
Hi, @mp911de!
Could I work on this issue or maybe a part of it? From what I understand, the task is about replacing @Nullable and @NonNull annotations with JSpecify annotations, e.g., ensuring that the necessary imports are in place where they are currently used. Is there anything else I should know before I start working on this?
Thanks!
Hey @ivamly. There's quite a bit more attached to this task. JSpecify annotations relate to the type level while Spring's @Nullable is targeting parameters, fields, and methods. Also, we're looking to leverage @Contract and integrate with NullAway.
I highly suggest waiting until common infrastructure and dependency management in the build infrastructure is in place (see https://github.com/spring-projects/spring-data-commons/issues/3170). If you give this topic another month or two, then you should have everything in place to start with the task on the module level.
Thanks! I’ll wait for that.