FasterXML / FasterXML/jackson-core

Explicitly indicate Nullability of arguments and return values (JSpecify) -- for 3.3?

Đang mở
#1,105 13 bình luận 0 reaction 0 người được giao Xem trên GitHub
3.x
Ngôn ngữ chính
Java
Star
2.4k
Fork
928
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
24

Mô tả

Currently `nullability` is not explicitly stated for `Jackson`.
On the other hand, there are actually APIs that do not allow `null` input.
Also, there are cases where inadvertent destructive changes can occur, as in the issue submitted below.
https://github.com/FasterXML/jackson-dataformat-xml/issues/607

Personally, I think that Nullability annotations should be given to public interfaces to avoid such problems.
`Jackson` is a huge project and we cannot fix everything at once, but I think we can proceed gradually.

There are several possible annotations to use, but to minimize the impact, it is better to choose one whose `RetentionPolicy` is not `RUNTIME`.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.