Skip to content

Commit bcaa1d8

Browse files
author
Vincent Potucek
committed
Fix unused assignment: the value changed at constructorArgNum++ is never used
Signed-off-by: Vincent Potucek <vpotucek@me.com>
1 parent 764d35c commit bcaa1d8

File tree

2 files changed

+418
-1
lines changed

2 files changed

+418
-1
lines changed

spring-context/src/main/java/org/springframework/scripting/config/ScriptBeanDefinitionParser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ else if (beanDefinitionDefaults.getDestroyMethodName() != null) {
199199
parserContext.getReaderContext().error("Attribute 'customizer-ref' has empty value", element);
200200
}
201201
else {
202-
cav.addIndexedArgumentValue(constructorArgNum++, new RuntimeBeanReference(customizerBeanName));
202+
cav.addIndexedArgumentValue(constructorArgNum, new RuntimeBeanReference(customizerBeanName));
203203
}
204204
}
205205

0 commit comments

Comments
 (0)