Skip to content

Commit 1fd5ad5

Browse files
committed
Merge pull request #45965 from csbiy
* pr/45965: Upgrade copyright year of changed file Replace explicit loop with forEach method reference Closes gh-45965
2 parents 3911507 + a8dd821 commit 1fd5ad5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2024 the original author or authors.
2+
* Copyright 2012-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -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)