summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dependency-rewrite/src/main/java/com/vaadin/test/dependencyrewrite/MyService.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/dependency-rewrite/src/main/java/com/vaadin/test/dependencyrewrite/MyService.java b/test/dependency-rewrite/src/main/java/com/vaadin/test/dependencyrewrite/MyService.java
index 5723a93885..b63d1da412 100644
--- a/test/dependency-rewrite/src/main/java/com/vaadin/test/dependencyrewrite/MyService.java
+++ b/test/dependency-rewrite/src/main/java/com/vaadin/test/dependencyrewrite/MyService.java
@@ -1,5 +1,6 @@
package com.vaadin.test.dependencyrewrite;
+import java.util.ArrayList;
import java.util.List;
import com.vaadin.server.DependencyFilter;
@@ -17,9 +18,10 @@ public class MyService extends VaadinServletService {
}
@Override
- protected List<DependencyFilter> createDependencyFilters()
- throws ServiceException {
- List<DependencyFilter> list = super.createDependencyFilters();
+ protected List<DependencyFilter> initDependencyFilters(
+ List<DependencyFilter> sessionInitFilters) throws ServiceException {
+ List<DependencyFilter> list = new ArrayList<>(
+ super.initDependencyFilters(sessionInitFilters));
list.add(new ApplicationDependencyFilter());
return list;
}