Skip to content

Commit 5702831

Browse files
javier-godoypaodb
authored andcommitted
fix: fix initialization of SourceCodeTab language attribute
1 parent 8ca7464 commit 5702831

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/com/flowingcode/vaadin/addons/demo/TabbedDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ private Optional<SourceCodeTab> createSourceCodeTab(Class<?> annotatedClass, Dem
247247
}
248248

249249
if (!annotation.language().equals(DemoSource.DEFAULT_VALUE)) {
250-
builder.language(annotation.caption());
250+
builder.language(annotation.language());
251251
}
252252

253253
if (!annotation.condition().isEmpty()) {

0 commit comments

Comments
 (0)