Skip to content

Commit

Permalink
Revert deprecation of [Simple]CommandLinePropertySource
Browse files Browse the repository at this point in the history
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
  • Loading branch information
sbrannen committed Sep 13, 2023
1 parent 01f7173 commit e5f1879
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,9 +204,7 @@
* @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}. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@
* @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> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
* @author Sam Brannen
* @since 3.1
*/
@SuppressWarnings("deprecation")
class SimpleCommandLinePropertySourceTests {

@Test
Expand Down

0 comments on commit e5f1879

Please sign in to comment.