FasterXML / FasterXML/jackson-core

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

Ouverte
#1,105 13 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
3.x
Langage dominant
Java
Étoiles
2.4k
Forks
928
Merge moyen
2 j 18 h
PR mergées (30 j)
24

Description

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`.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.