FasterXML / FasterXML/jackson-core
Explicitly indicate Nullability of arguments and return values (JSpecify) -- for 3.3?
- 主要言語
- Java
- スター
- 2.4k
- フォーク
- 928
- 平均マージ
- 2日 18時間
- マージ済み PR(30日)
- 24
説明
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`.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。