Fix deprecation in UndertowServletWebServerFactory

Closes gh-13873
pull/13901/head
dreis2211 6 years ago committed by Stephane Nicoll
parent 7bc1863871
commit 2399092f16

@ -348,7 +348,7 @@ public class UndertowServletWebServerFactory extends AbstractServletWebServerFac
DeploymentInfo deployment, ServletContextInitializer... initializers) { DeploymentInfo deployment, ServletContextInitializer... initializers) {
ServletContextInitializer[] mergedInitializers = mergeInitializers(initializers); ServletContextInitializer[] mergedInitializers = mergeInitializers(initializers);
Initializer initializer = new Initializer(mergedInitializers); Initializer initializer = new Initializer(mergedInitializers);
deployment.addServletContainerInitalizer(new ServletContainerInitializerInfo( deployment.addServletContainerInitializer(new ServletContainerInitializerInfo(
Initializer.class, Initializer.class,
new ImmediateInstanceFactory<ServletContainerInitializer>(initializer), new ImmediateInstanceFactory<ServletContainerInitializer>(initializer),
NO_CLASSES)); NO_CLASSES));

Loading…
Cancel
Save