Merge pull request #45965 from csbiy

* pr/45965:
  Upgrade copyright year of changed file
  Replace explicit loop with forEach method reference

Closes gh-45965
This commit is contained in:
Stéphane Nicoll
2025-06-15 21:03:43 +02:00

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2024 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -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();