mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-22 22:19:03 +00:00
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>