11/*
2- * Copyright 2002-2024 the original author or authors.
2+ * Copyright 2002-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.
4242 * add by default. {@code AbstractEnvironment} adds none. Subclasses should contribute
4343 * property sources through the protected {@link #customizePropertySources(MutablePropertySources)}
4444 * hook, while clients should customize using {@link ConfigurableEnvironment#getPropertySources()}
45- * and working against the {@link MutablePropertySources} API.
45+ * and work against the {@link MutablePropertySources} API.
4646 * See {@link ConfigurableEnvironment} javadoc for usage examples.
4747 *
4848 * @author Chris Beams
@@ -66,7 +66,7 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
6666 public static final String IGNORE_GETENV_PROPERTY_NAME = "spring.getenv.ignore" ;
6767
6868 /**
69- * Name of the property to set to specify active profiles: {@value}.
69+ * Name of the property to specify active profiles: {@value}.
7070 * <p>The value may be comma delimited.
7171 * <p>Note that certain shell environments such as Bash disallow the use of the period
7272 * character in variable names. Assuming that Spring's {@link SystemEnvironmentPropertySource}
@@ -77,7 +77,7 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
7777 public static final String ACTIVE_PROFILES_PROPERTY_NAME = "spring.profiles.active" ;
7878
7979 /**
80- * Name of the property to set to specify profiles that are active by default: {@value}.
80+ * Name of the property to specify profiles that are active by default: {@value}.
8181 * <p>The value may be comma delimited.
8282 * <p>Note that certain shell environments such as Bash disallow the use of the period
8383 * character in variable names. Assuming that Spring's {@link SystemEnvironmentPropertySource}
@@ -141,7 +141,7 @@ protected AbstractEnvironment(MutablePropertySources propertySources) {
141141
142142 /**
143143 * Factory method used to create the {@link ConfigurablePropertyResolver}
144- * instance used by the Environment.
144+ * used by this {@code Environment} .
145145 * @since 5.3.4
146146 * @see #getPropertyResolver()
147147 */
@@ -150,8 +150,7 @@ protected ConfigurablePropertyResolver createPropertyResolver(MutablePropertySou
150150 }
151151
152152 /**
153- * Return the {@link ConfigurablePropertyResolver} being used by the
154- * {@link Environment}.
153+ * Return the {@link ConfigurablePropertyResolver} used by the {@code Environment}.
155154 * @since 5.3.4
156155 * @see #createPropertyResolver(MutablePropertySources)
157156 */
@@ -319,15 +318,14 @@ public void addActiveProfile(String profile) {
319318 }
320319 }
321320
322-
323321 @ Override
324322 public String [] getDefaultProfiles () {
325323 return StringUtils .toStringArray (doGetDefaultProfiles ());
326324 }
327325
328326 /**
329327 * Return the set of default profiles explicitly set via
330- * {@link #setDefaultProfiles(String...)} or if the current set of default profiles
328+ * {@link #setDefaultProfiles(String...)}, or if the current set of default profiles
331329 * consists only of {@linkplain #getReservedDefaultProfiles() reserved default
332330 * profiles}, then check for the presence of {@link #doGetActiveProfilesProperty()}
333331 * and assign its value (if any) to the set of default profiles.
@@ -418,7 +416,7 @@ protected boolean isProfileActive(String profile) {
418416 * active or default profiles.
419417 * <p>Subclasses may override to impose further restrictions on profile syntax.
420418 * @throws IllegalArgumentException if the profile is null, empty, whitespace-only or
421- * begins with the profile NOT operator (!).
419+ * begins with the profile NOT operator (!)
422420 * @see #acceptsProfiles
423421 * @see #addActiveProfile
424422 * @see #setDefaultProfiles
0 commit comments