Skip to content

Commit

Permalink
Merge pull request #6260 from eclipse/jetty-10.0.x-3764-DeprecationWa…
Browse files Browse the repository at this point in the history
…rning

Fix #3764 DeprecationWarning decorator
  • Loading branch information
joakime committed May 12, 2021
2 parents f58dbed + f26af79 commit 4204526
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -175,7 +175,6 @@ public ServletContextHandler(HandlerContainer parent, String contextPath, Sessio
_servletHandler = servletHandler;

_objFactory = new DecoratedObjectFactory();
_objFactory.addDecorator(new DeprecationWarning());

// Link the handlers
relinkHandlers();
Expand Down Expand Up @@ -302,6 +301,7 @@ private void relinkHandlers()
@Override
protected void doStart() throws Exception
{
_objFactory.addDecorator(new DeprecationWarning());
getServletContext().setAttribute(DecoratedObjectFactory.ATTR, _objFactory);
super.doStart();
}
Expand Down

0 comments on commit 4204526

Please sign in to comment.