Replace explicit loop with forEach method reference

See gh-45965

Signed-off-by: csbiy <katd6@naver.com>
This commit is contained in:
csbiy
2025-06-14 21:22:31 +09:00
committed by Stéphane Nicoll
parent 3911507b36
commit b3e1f97630

View File

@@ -50,7 +50,7 @@ class DynamicPropertySourceMethodsImporter {
if (methods.isEmpty()) {
return;
}
methods.forEach((method) -> assertValid(method));
methods.forEach(this::assertValid);
RootBeanDefinition registrarDefinition = new RootBeanDefinition();
registrarDefinition.setBeanClass(DynamicPropertySourcePropertyRegistrar.class);
ConstructorArgumentValues arguments = new ConstructorArgumentValues();