Skip to content

Commit

Permalink
fix: add native hints for auto layout feature (#20237)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati authored Oct 14, 2024
1 parent 7796cd8 commit f9c4273
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
import com.vaadin.flow.component.page.AppShellConfigurator;
import com.vaadin.flow.router.HasErrorParameter;
import com.vaadin.flow.router.HasUrlParameter;
import com.vaadin.flow.router.Layout;
import com.vaadin.flow.router.Route;
import com.vaadin.flow.router.RouteAlias;
import com.vaadin.flow.router.RouterLayout;
Expand Down Expand Up @@ -180,6 +181,7 @@ private static Collection<Class<?>> getRouteTypesFor(
var routeTypes = new HashSet<Class<?>>();
routeTypes.addAll(reflections.getTypesAnnotatedWith(Route.class));
routeTypes.addAll(reflections.getTypesAnnotatedWith(RouteAlias.class));
routeTypes.addAll(reflections.getTypesAnnotatedWith(Layout.class));
return routeTypes;
}

Expand Down

0 comments on commit f9c4273

Please sign in to comment.