Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Aug 31, 2023
1 parent e5267aa commit 8340842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
import com.vaadin.flow.server.communication.UidlWriter;

import java.io.Serializable;
import java.util.Collections;
import java.util.ServiceLoader;
import java.util.stream.Stream;

Expand Down Expand Up @@ -132,7 +131,7 @@ default Stream<DependencyFilter> getDependencyFilters(
* @return all instances of the given type
*/
default <T> Stream<T> getAll(Class<T> type) {
return (Stream<T>) Collections.emptyList().stream();
return Stream.empty();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public void uiInitListenerAsSpringBean_listenerIsAutoregisteredAsUIInitiLietnerI
}

@Test
public void filtersAreRegisteredOnTheServlet() throws ServletException {
public void requestInterceptorsAreRegisteredOnTheService()
throws ServletException {
VaadinService service = SpringInstantiatorTest.getService(context,
new Properties());

Expand Down

0 comments on commit 8340842

Please sign in to comment.