Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,7 @@ pre[class*="language-"] {
&& !line.startsWith('@Route')
&& !line.startsWith('@PageTitle')
&& !line.startsWith('@DemoSource')
&& !line.startsWith('@SuppressWarnings')
&& !line.startsWith('package ')
&& line != 'import com.vaadin.flow.router.PageTitle;'
&& line != 'import com.vaadin.flow.router.Route;'
Expand Down Expand Up @@ -354,7 +355,7 @@ pre[class*="language-"] {
if (ai>bi) return +1;
}
if (aa.length<bb.length) return -1;
if (aa.length<bb.length) return +1;
if (aa.length>bb.length) return +1;
return 0;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,11 @@ public class SourceCodeViewerView extends Div implements HasUrlParameter<String>
public void setParameter(BeforeEvent event, @OptionalParameter String parameter) {
Map<String, String> properties = null;
if (parameter != null) {
String[] ss = parameter.split(";");

properties = new HashMap<>();
for (int i = 1; i < ss.length; i++) {
String param[] = ss[i].split("=");
for (String s : parameter.split(";")) {
String param[] = s.split("=");
properties.put(param[0], param[1]);
}

if (properties.isEmpty()) {
properties = null;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@Route
@PageTitle("pagetitle")
@DemoSource
@SuppressWarnings
class MyClass {

}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//Copyright (C) 2021 - 2023 Flowing Code
//Copyright (C) 2020 - 2023 Flowing Code
//Licensed under the Apache License, Version 2.0

class MyClass {
Expand Down