As of Spring Framework 7.0.3 it is recommended to use DefaultParameterNameDiscoverer.getSharedInstance() rather than re-instantiating a custom DefaultParameterNameDiscoverer in every internal place. Most importantly, MethodParameter#getParameterName() uses that default discoverer as well now, so there is no need to call initParameterNameDiscovery anymore unless you got a custom discoverer to apply.
See spring-projects/spring-framework#36024