Merge pull request #6260 from eclipse/jetty-10.0.x-3764-DeprecationWarning
Fix #3764 DeprecationWarning decorator
This commit is contained in:
commit
4204526d2f
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue