Skip to content

Apply Nullability to the project #10083

Open
@artembilan

Description

@artembilan

More info in the Spring Framework 7.0 docs: https://docs.spring.io/spring-framework/reference/7.0/core/null-safety.html.

We can treat this issue an Epic and have sub-issues for specific tasks or dedicated module fixes.

This can be done in phase:

  1. Migrate from deprecated org.springframework.lang.Nullable on properties methods to the org.jspecify.annotations.Nullable.
  2. Migrate @org.springframework.lang.NonNullApi and @org.springframework.lang.NonNullFields pair to the @org.jspecify.annotations.NullMarked. However this would trigger the third phase.
  3. Fix nullabilty errors in those @org.jspecify.annotations.NullMarked packages.
  4. Add more and more @org.jspecify.annotations.NullMarked and fix respective nullability vulnerabilities in those package and modules.

Any other thoughts and possible ways to fix this huge task are welcome!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions