Revert deprecation of [Simple]CommandLinePropertySource
This commit reverts the deprecation of CommandLinePropertySource and SimpleCommandLinePropertySource, since we have discovered that Spring Boot actively uses SimpleCommandLinePropertySource in org.springframework.boot.SpringApplication. Closes gh-31207
This commit is contained in:
@@ -76,7 +76,6 @@ class BeanDefinitionDslTests {
|
||||
}
|
||||
|
||||
@Test
|
||||
@Suppress("DEPRECATION")
|
||||
fun `Declare beans using environment condition with the functional Kotlin DSL`() {
|
||||
val beans = beans {
|
||||
bean<Foo>()
|
||||
|
||||
@@ -204,9 +204,7 @@ import org.springframework.util.StringUtils;
|
||||
* @see PropertySource
|
||||
* @see SimpleCommandLinePropertySource
|
||||
* @see JOptCommandLinePropertySource
|
||||
* @deprecated since 6.1 with no plans for a replacement
|
||||
*/
|
||||
@Deprecated(since = "6.1")
|
||||
public abstract class CommandLinePropertySource<T> extends EnumerablePropertySource<T> {
|
||||
|
||||
/** The default name given to {@link CommandLinePropertySource} instances: {@value}. */
|
||||
|
||||
@@ -83,9 +83,7 @@ import org.springframework.util.StringUtils;
|
||||
* @since 3.1
|
||||
* @see CommandLinePropertySource
|
||||
* @see JOptCommandLinePropertySource
|
||||
* @deprecated since 6.1 with no plans for a replacement
|
||||
*/
|
||||
@Deprecated(since = "6.1")
|
||||
public class SimpleCommandLinePropertySource extends CommandLinePropertySource<CommandLineArgs> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -29,7 +29,6 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Sam Brannen
|
||||
* @since 3.1
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
class SimpleCommandLinePropertySourceTests {
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user