mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
7a19cbb452
Extending AbstractSmartHttpMessageConverter typically requires to override both Class and ResolvableType variants of canRead. This was not intended as SmartHttpMessageConverter interface has default methods doing the conversion from Class parameters to ResolvableType ones, but AbstractHttpMessageConverter overrides it. This commit changes AbstractSmartHttpMessageConverter canRead/canWrite overrides from ResolvableType to Class ones that delegate to the ResolvableType variants. It also refines AbstractJacksonHttpMessageConverter accordingly. Closes gh-35916