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:
Sam Brannen
2023-09-13 15:57:50 +02:00
parent 01f717375b
commit e5f18798ca
4 changed files with 0 additions and 6 deletions

View File

@@ -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>()

View File

@@ -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}. */

View File

@@ -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> {
/**

View File

@@ -29,7 +29,6 @@ import static org.assertj.core.api.Assertions.assertThat;
* @author Sam Brannen
* @since 3.1
*/
@SuppressWarnings("deprecation")
class SimpleCommandLinePropertySourceTests {
@Test