File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
main/java/org/springframework/core/env
test/java/org/springframework/core/env
spring-web/src/main/java/org/springframework/web/context/support Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -60,9 +60,17 @@ public class StandardEnvironment extends AbstractEnvironment {
60
60
public static final String SYSTEM_PROPERTIES_PROPERTY_SOURCE_NAME = "systemProperties" ;
61
61
62
62
63
+ /**
64
+ * Create a new {@code StandardEnvironment} instance.
65
+ */
63
66
public StandardEnvironment () {
64
67
}
65
68
69
+ /**
70
+ * Create a new {@code StandardEnvironment} instance with a specific {@link MutablePropertySources} instance.
71
+ * @param propertySources property sources to use
72
+ * @since 5.3.4
73
+ */
66
74
protected StandardEnvironment (MutablePropertySources propertySources ) {
67
75
super (propertySources );
68
76
}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ protected Set<String> getReservedDefaultProfiles() {
108
108
}
109
109
110
110
@ Test
111
- public void withNoProfileProperties () {
111
+ void withNoProfileProperties () {
112
112
ConfigurableEnvironment env = new AbstractEnvironment () {
113
113
@ Override
114
114
@ Nullable
@@ -131,7 +131,7 @@ protected String doGetDefaultProfilesProperty() {
131
131
}
132
132
133
133
@ Test
134
- public void withCustomMutablePropertySources () {
134
+ void withCustomMutablePropertySources () {
135
135
class CustomMutablePropertySources extends MutablePropertySources {}
136
136
MutablePropertySources propertySources = new CustomMutablePropertySources ();
137
137
ConfigurableEnvironment env = new AbstractEnvironment (propertySources ) {};
Original file line number Diff line number Diff line change @@ -54,9 +54,17 @@ public class StandardServletEnvironment extends StandardEnvironment implements C
54
54
public static final String JNDI_PROPERTY_SOURCE_NAME = "jndiProperties" ;
55
55
56
56
57
+ /**
58
+ * Create a new {@code StandardServletEnvironment} instance.
59
+ */
57
60
public StandardServletEnvironment () {
58
61
}
59
62
63
+ /**
64
+ * Create a new {@code StandardServletEnvironment} instance with a specific {@link MutablePropertySources} instance.
65
+ * @param propertySources property sources to use
66
+ * @since 5.3.4
67
+ */
60
68
protected StandardServletEnvironment (MutablePropertySources propertySources ) {
61
69
super (propertySources );
62
70
}
You can’t perform that action at this time.
0 commit comments