Merge pull request #6260 from eclipse/jetty-10.0.x-3764-DeprecationWarning

Fix #3764 DeprecationWarning decorator
This commit is contained in:
Joakim Erdfelt 2021-05-12 11:03:53 -05:00 committed by GitHub
commit 4204526d2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,6 @@ public class ServletContextHandler extends ContextHandler
_servletHandler = servletHandler;
_objFactory = new DecoratedObjectFactory();
_objFactory.addDecorator(new DeprecationWarning());
// Link the handlers
relinkHandlers();
@ -302,6 +301,7 @@ public class ServletContextHandler extends ContextHandler
@Override
protected void doStart() throws Exception
{
_objFactory.addDecorator(new DeprecationWarning());
getServletContext().setAttribute(DecoratedObjectFactory.ATTR, _objFactory);
super.doStart();
}