Deprecate CommandLinePropertySource and associated implementations
Closes gh-31207
This commit is contained in:
@@ -204,7 +204,9 @@ 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}. */
|
||||
|
||||
@@ -61,7 +61,9 @@ import org.springframework.util.StringUtils;
|
||||
* @see CommandLinePropertySource
|
||||
* @see joptsimple.OptionParser
|
||||
* @see joptsimple.OptionSet
|
||||
* @deprecated since 6.1 with no plans for a replacement
|
||||
*/
|
||||
@Deprecated(since = "6.1")
|
||||
public class JOptCommandLinePropertySource extends CommandLinePropertySource<OptionSet> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -83,7 +83,9 @@ 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> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2021 the original author or authors.
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -31,6 +31,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
* @author Sam Brannen
|
||||
* @since 3.1
|
||||
*/
|
||||
@SuppressWarnings("deprecation")
|
||||
class JOptCommandLinePropertySourceTests {
|
||||
|
||||
@Test
|
||||
|
||||
@@ -29,6 +29,7 @@ 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