diff --git a/vaadin-cdi/src/main/java/com/vaadin/cdi/CdiVaadinServletService.java b/vaadin-cdi/src/main/java/com/vaadin/cdi/CdiVaadinServletService.java index 5b659580..eebbb60b 100644 --- a/vaadin-cdi/src/main/java/com/vaadin/cdi/CdiVaadinServletService.java +++ b/vaadin-cdi/src/main/java/com/vaadin/cdi/CdiVaadinServletService.java @@ -82,7 +82,7 @@ public CdiVaadinServletService(CdiVaadinServlet servlet, DeploymentConfiguration configuration, BeanManager beanManager) { super(servlet, configuration); - this.delegate = new CdiVaadinServiceDelegate(this, beanManager); + this.delegate = new CdiVaadinServiceDelegate(beanManager); } @Override @@ -164,8 +164,7 @@ public static class CdiVaadinServiceDelegate implements Serializable { private final UIEventListener uiEventListener; - public CdiVaadinServiceDelegate(VaadinService vaadinService, - BeanManager beanManager) { + public CdiVaadinServiceDelegate(BeanManager beanManager) { this.beanManager = beanManager; uiEventListener = new UIEventListener(this); }