Skip to content

Commit e5f1879

Browse files
committed
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
1 parent 01f7173 commit e5f1879

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

spring-context/src/test/kotlin/org/springframework/context/support/BeanDefinitionDslTests.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ class BeanDefinitionDslTests {
7676
}
7777

7878
@Test
79-
@Suppress("DEPRECATION")
8079
fun `Declare beans using environment condition with the functional Kotlin DSL`() {
8180
val beans = beans {
8281
bean<Foo>()

spring-core/src/main/java/org/springframework/core/env/CommandLinePropertySource.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,7 @@
204204
* @see PropertySource
205205
* @see SimpleCommandLinePropertySource
206206
* @see JOptCommandLinePropertySource
207-
* @deprecated since 6.1 with no plans for a replacement
208207
*/
209-
@Deprecated(since = "6.1")
210208
public abstract class CommandLinePropertySource<T> extends EnumerablePropertySource<T> {
211209

212210
/** The default name given to {@link CommandLinePropertySource} instances: {@value}. */

spring-core/src/main/java/org/springframework/core/env/SimpleCommandLinePropertySource.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@
8383
* @since 3.1
8484
* @see CommandLinePropertySource
8585
* @see JOptCommandLinePropertySource
86-
* @deprecated since 6.1 with no plans for a replacement
8786
*/
88-
@Deprecated(since = "6.1")
8987
public class SimpleCommandLinePropertySource extends CommandLinePropertySource<CommandLineArgs> {
9088

9189
/**

spring-core/src/test/java/org/springframework/core/env/SimpleCommandLinePropertySourceTests.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
* @author Sam Brannen
3030
* @since 3.1
3131
*/
32-
@SuppressWarnings("deprecation")
3332
class SimpleCommandLinePropertySourceTests {
3433

3534
@Test

0 commit comments

Comments
 (0)