jakartaee / jakartaee/common-annotations-api

`@Nullable` and `Nonnull` VS jspecify

Open
#145 10 comments 2 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
67
Forks
42
PR merge metrics
No merged PRs in 30d

Description

[jspecify](https://jspecify.dev/) is more popular and gets better community tools support today, the next Spring 7.0 has already migrated to jspecify to check the field/method parameter/return type nullable.

In the current Jakarta Annotations, the `@Nullable` and `NonNull` are extracted from JSR305. Jspecify provides more features and compatibility.

With wider tool support when using Jspecify, we can generate static analysis reports at compile time。

If we keep the existing `@Nullable/@Nonnull` in Jakarta EE, can we generate analysis results at build/deployment time?

Contributor guide

Open the contributing guide

Research direction

Start with the jspecify link and the current Jakarta Annotations discussion of @Nullable and @Nonnull. Compare the stated Spring 7.0 migration and available tool support, then determine whether the project should adopt jspecify or support build/deployment-time analysis while retaining the existing annotations. Done requires a documented decision and defined scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.