Skip to content

Commit a7ddd46

Browse files
committed
Replace explicit loop with forEach method reference for better readability
- Improves code conciseness and aligns with modern Java practices. Signed-off-by: csbiy <[email protected]>
1 parent 740b00e commit a7ddd46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-testcontainers/src/main/java/org/springframework/boot/testcontainers/context/DynamicPropertySourceMethodsImporter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ void registerDynamicPropertySources(BeanDefinitionRegistry beanDefinitionRegistr
5050
if (methods.isEmpty()) {
5151
return;
5252
}
53-
methods.forEach((method) -> assertValid(method));
53+
methods.forEach(this::assertValid);
5454
RootBeanDefinition registrarDefinition = new RootBeanDefinition();
5555
registrarDefinition.setBeanClass(DynamicPropertySourcePropertyRegistrar.class);
5656
ConstructorArgumentValues arguments = new ConstructorArgumentValues();

0 commit comments

Comments
 (0)