[
https://issues.apache.org/jira/browse/KAFKA-9234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18022387#comment-18022387
]
Roman Kaufmann commented on KAFKA-9234:
---------------------------------------
I would also support the comment from [~CatchDepthHeightLight] :
Spring-Framework 7 & Spring-Boot 4 replaced their own Null-Annotations with the
new “standard” JSpecify ones [Null Safety in Spring applications with JSpecify
and
NullAway|https://spring.io/blog/2025/03/10/null-safety-in-spring-apps-with-jspecify-and-null-away]
* release date of new Spring Major Version November 2025
* compile-time null safety with NullAway [GitHub - uber/NullAway: A tool to
help eliminate NullPointerExceptions (NPEs) in your Java code with low
build-time overhead|https://github.com/uber/NullAway]
* This is also used by Spring internally as can be read in the linked blog
above
>From a developer perspective this would definitely help to avoid a bunch of
>NPEs in daily business. Are there any updates regarding the dev mailing list
>discussions or plans to get similar support in an upcoming release?
> Consider using @Nullable and @Nonnull annotations
> -------------------------------------------------
>
> Key: KAFKA-9234
> URL: https://issues.apache.org/jira/browse/KAFKA-9234
> Project: Kafka
> Issue Type: Improvement
> Components: admin, clients, connect, consumer, producer , streams,
> streams-test-utils
> Reporter: Matthias J. Sax
> Assignee: Ganesh Sahu
> Priority: Minor
> Labels: beginner, newbie
>
> Java7 was dropped some time ago, and we might want to consider usein Java8
> `@Nullable` and `@Nonnull` annotations for all public facing APIs instead of
> documenting it in JavaDocs only.
> This tickets should be broken down in a series of smaller PRs to keep the
> scope of each PR contained, allowing for more effective reviews.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)