ResolvableType.forInstance should return NONE for null instance #28776
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
ResolvableType.forInstance(Object)
enforces a not-null argument which makes it unpleasant to use with input that can come from a nullable source (or even just an API call which in some circumstances may returnnull
and is therefore marked as@Nullable
, even if never actuallynull
in a given usage scenario). A more usage-friendly variant is to acceptnull
but turn it intoResolvableType.NONE
.The text was updated successfully, but these errors were encountered: