Skip to content

Commit

Permalink
fix: Change from ? extends Component to ? for VS Code (#16884) (#16894)
Browse files Browse the repository at this point in the history
* fix: Change from ? extends Component ? for VS Code

VS Code refuses to understand that a View which extends a Component can be used with the annotation when it is `Class<? extends Component>`. VS Code is broken here but this is a workaround to make VS Code work.

* add comment

Co-authored-by: Artur <artur@vaadin.com>
  • Loading branch information
vaadin-bot and Artur- committed May 26, 2023
1 parent f01b73c commit b3ee851
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -51,10 +51,13 @@
/**
* The views for which to load dependencies when the application is opened
* for the first time.
* <p>
* Note that all classes must extend {@link Component}. The the type is
* {@code Class<?>} because of a VS Code issue.
*
* @return a collection of views to load eagerly or an empty array to load
* all dependencies eagerly
*/
Class<? extends Component>[] value() default {};
Class<?>[] value() default {};

}

0 comments on commit b3ee851

Please sign in to comment.