VaadinAppShellInitializer.java (vaadin-flow-4.0.7) | : | VaadinAppShellInitializer.java (vaadin-flow-4.0.8) | ||
---|---|---|---|---|
skipping to change at line 127 | skipping to change at line 127 | |||
.getInstance(new VaadinServletContext(context)); | .getInstance(new VaadinServletContext(context)); | |||
registry.reset(); | registry.reset(); | |||
if (classes == null || classes.isEmpty()) { | if (classes == null || classes.isEmpty()) { | |||
return; | return; | |||
} | } | |||
List<String> offendingAnnotations = new ArrayList<>(); | List<String> offendingAnnotations = new ArrayList<>(); | |||
classes.stream() | classes.stream() | |||
// sort classes by putting VaadinAppShell in first position | // sort classes by putting the app shell in first position | |||
.sorted((a, b) -> registry.isShell(a) ? -1 | .sorted((a, b) -> registry.isShell(a) ? -1 | |||
: registry.isShell(b) ? 1 : 0) | : registry.isShell(b) ? 1 : 0) | |||
.forEach(clz -> { | .forEach(clz -> { | |||
if (registry.isShell(clz)) { | if (registry.isShell(clz)) { | |||
registry.setShell( | registry.setShell( | |||
(Class<? extends AppShellConfigurator>) clz); | (Class<? extends AppShellConfigurator>) clz); | |||
getLogger().info( | getLogger().info( | |||
"Using {} class for configuring `index.html` res ponse", | "Using {} class for configuring `index.html` res ponse", | |||
clz.getName()); | clz.getName()); | |||
} else { | } else { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |