File tree 1 file changed +5
-2
lines changed
spring-core/src/main/java/org/springframework/core/env
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2024 the original author or authors.
2
+ * Copyright 2002-2025 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
34
34
*
35
35
* <p>As of Spring 4.1.2, this class extends {@link EnumerablePropertySource} instead
36
36
* of plain {@link PropertySource}, exposing {@link #getPropertyNames()} based on the
37
- * accumulated property names from all contained sources (as far as possible).
37
+ * accumulated property names from all contained sources - and failing with an
38
+ * {@code IllegalStateException} against any non-{@code EnumerablePropertySource}.
39
+ * <b>When used through the {@code EnumerablePropertySource} contract, all contained
40
+ * sources are expected to be of type {@code EnumerablePropertySource} as well.</b>
38
41
*
39
42
* @author Chris Beams
40
43
* @author Juergen Hoeller
You can’t perform that action at this time.
0 commit comments