Remove deprecated web APIs

This commit also marks for removal APIs that were deprecated a long time
ago but were not marked for removal.

See gh-33809
This commit is contained in:
Brian Clozel
2024-12-08 22:50:54 +01:00
parent 5044b70a40
commit 810da11bb5
13 changed files with 19 additions and 330 deletions

View File

@@ -39,9 +39,10 @@ import org.springframework.web.util.WebUtils;
* @author Juergen Hoeller
* @since 17.06.2003
* @see #setThemeName
* @deprecated as of 6.0 in favor of using CSS, without direct replacement
* @deprecated as of 6.0 in favor of using CSS, without direct replacement for removal in 7.1
*/
@Deprecated(since = "6.0")
@Deprecated(since = "6.0", forRemoval = true)
@SuppressWarnings("removal")
public class CookieThemeResolver extends CookieGenerator implements ThemeResolver {
/**

View File

@@ -272,6 +272,7 @@ public class MvcNamespaceTests {
}
@Test // gh-25290
@SuppressWarnings("removal")
void testDefaultConfigWithBeansInParentContext() {
StaticApplicationContext parent = new StaticApplicationContext();
parent.registerSingleton("localeResolver", CookieLocaleResolver.class);

View File

@@ -66,6 +66,7 @@ public class ThemeResolverTests {
}
@Test
@SuppressWarnings("removal")
void cookieThemeResolver() {
internalTest(new CookieThemeResolver(), true, AbstractThemeResolver.ORIGINAL_DEFAULT_THEME_NAME);
}