Deprecate org.springframework.core.Constants utility

Closes gh-30851
This commit is contained in:
Sam Brannen
2023-07-31 16:02:06 +03:00
parent 3b8dd0a5ac
commit 2f7046f572
2 changed files with 4 additions and 0 deletions

View File

@@ -43,7 +43,10 @@ import org.springframework.util.ReflectionUtils;
* @author Rod Johnson
* @author Juergen Hoeller
* @since 16.03.2003
* @deprecated since 6.1 with no replacement; use an enum, map, or similar custom
* solution instead
*/
@Deprecated(since = "6.1")
public class Constants {
/** The name of the introspected class. */

View File

@@ -31,6 +31,7 @@ import static org.assertj.core.api.Assertions.assertThatIllegalArgumentException
* @author Rick Evans
* @since 28.04.2003
*/
@SuppressWarnings("deprecation")
class ConstantsTests {
@Test