ClassLoader can be null in DeserializingConverter and should be annotated with @Nullable #30670
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Given the
DefaultDeserializer
allows theClassLoader
to benull
, then it follows that theDeserializingConverter
should allow anull
ClassLoader
on construction.Because the
ClassLoader
constructor parameter is not declared@Nullable
in contexts (such as other framework code; for example, in SD Redis) where aClassLoader
may not be provided, a compiler warning is present.Indeed, a
ClassLoader
is not strictly required to carry out the function of theDeserializingConverter
.The text was updated successfully, but these errors were encountered: