File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/main/java/com/flowingcode/vaadin/addons/demo Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 4343@ Target (ElementType .TYPE )
4444public @interface DemoSource {
4545
46+ /** @deprecated. Use {@link #DEFAULT_VALUE} */
47+ @ Deprecated
4648 static final String GITHUB_SOURCE = "__GITHUB__" ;
4749
4850 static final String DEFAULT_VALUE = "__DEFAULT__" ;
5254 * <p>
5355 * It is an error if both {@code value} and {@link #clazz()} are specified.
5456 */
55- String value () default GITHUB_SOURCE ;
57+ String value () default DEFAULT_VALUE ;
5658
5759 /**
5860 * The class to display, if different from the annotated class.
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ public void showRouterLayoutContent(HasElement content) {
235235 private Optional <SourceCodeTab > createSourceCodeTab (Class <?> annotatedClass , DemoSource annotation ) {
236236 String demoFile ;
237237 String url = annotation .value ();
238- if (url .equals (DemoSource .GITHUB_SOURCE )) {
238+ if (url .equals (DemoSource .GITHUB_SOURCE ) || url . equals ( DemoSource . DEFAULT_VALUE ) ) {
239239 String className ;
240240 if (annotation .clazz () == DemoSource .class ) {
241241 className = annotatedClass .getName ().replace ('.' , '/' );
You can’t perform that action at this time.
0 commit comments