mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
c2d678879f
Prior to this commit, argument index handling in AutowiredArgumentsCodeGenerator suffered from an off-by-one error when generating code for an autowired inner class constructor. Since the startIndex is already properly calculated for an inner class in InstanceSupplierCodeGenerator.buildGetInstanceMethodForConstructor(...), there is no need to adjust the argument indexes within AutowiredArgumentsCodeGenerator.generateCode(...). Closes gh-34974 Signed-off-by: Dmytro Nosan <dimanosan@gmail.com>