Remove NoSuchMethodError guard for Context.setCreateUploadTargets()

See gh-44426

Signed-off-by: Johnny Lim <izeye@naver.com>
This commit is contained in:
Johnny Lim 2025-02-25 00:14:46 +09:00 committed by Stéphane Nicoll
parent 5e57f1bb7b
commit 7baadb5038
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ public class TomcatServletWebServerFactory extends AbstractServletWebServerFacto
context.setParentClassLoader(parentClassLoader);
resetDefaultLocaleMapping(context);
addLocaleMappings(context);
ignoringNoSuchMethodError(() -> context.setCreateUploadTargets(true));
context.setCreateUploadTargets(true);
configureTldPatterns(context);
WebappLoader loader = new WebappLoader();
loader.setLoaderInstance(new TomcatEmbeddedWebappClassLoader(parentClassLoader));