diff --git a/org.springframework.core/src/main/java/org/springframework/core/env/CommandLinePropertySource.java b/org.springframework.core/src/main/java/org/springframework/core/env/CommandLinePropertySource.java index 1620fd427b3..c7befa8620e 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/env/CommandLinePropertySource.java +++ b/org.springframework.core/src/main/java/org/springframework/core/env/CommandLinePropertySource.java @@ -188,7 +188,7 @@ import org.springframework.util.StringUtils; public abstract class CommandLinePropertySource extends PropertySource { /** The default name given to {@link CommandLinePropertySource} instances: {@value} */ - public static final String DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME = "commandLineArgs"; + public static final String COMMAND_LINE_PROPERTY_SOURCE_NAME = "commandLineArgs"; /** The default name of the property representing non-option arguments: {@value} */ public static final String DEFAULT_NON_OPTION_ARGS_PROPERTY_NAME = "nonOptionArgs"; @@ -197,10 +197,10 @@ public abstract class CommandLinePropertySource extends PropertySource { /** * Create a new {@code CommandLinePropertySource} having the default name {@value - * #DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME} and backed by the given source object. + * #COMMAND_LINE_PROPERTY_SOURCE_NAME} and backed by the given source object. */ public CommandLinePropertySource(T source) { - super(DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME, source); + super(COMMAND_LINE_PROPERTY_SOURCE_NAME, source); } /** diff --git a/org.springframework.core/src/main/java/org/springframework/core/env/JOptCommandLinePropertySource.java b/org.springframework.core/src/main/java/org/springframework/core/env/JOptCommandLinePropertySource.java index 48fa996c2b1..08403aeaeb7 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/env/JOptCommandLinePropertySource.java +++ b/org.springframework.core/src/main/java/org/springframework/core/env/JOptCommandLinePropertySource.java @@ -57,7 +57,7 @@ public class JOptCommandLinePropertySource extends CommandLinePropertySource ps = new SimpleCommandLinePropertySource(); assertThat(ps.getName(), - equalTo(CommandLinePropertySource.DEFAULT_COMMAND_LINE_PROPERTY_SOURCE_NAME)); + equalTo(CommandLinePropertySource.COMMAND_LINE_PROPERTY_SOURCE_NAME)); } @Test