File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
spring-core/src/main/java/org/springframework/core/env Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2023 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.
33
33
*
34
34
* <p>As of Spring 4.1.2, this class extends {@link EnumerablePropertySource} instead
35
35
* of plain {@link PropertySource}, exposing {@link #getPropertyNames()} based on the
36
- * accumulated property names from all contained sources (as far as possible).
36
+ * accumulated property names from all contained sources - and failing with an
37
+ * {@code IllegalStateException} against any non-{@code EnumerablePropertySource}.
38
+ * <b>When used through the {@code EnumerablePropertySource} contract, all contained
39
+ * sources are expected to be of type {@code EnumerablePropertySource} as well.</b>
37
40
*
38
41
* @author Chris Beams
39
42
* @author Juergen Hoeller
You can’t perform that action at this time.
0 commit comments