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 @@ -45,7 +45,7 @@

public void add(String text, Class<? extends Component> target) {
if (!text.equals("Basic Demo")) {
text = text.replaceFirst("\\s++[Dd]emo$", "");

Check warning on line 48 in base/src/main/java/com/flowingcode/vaadin/addons/demo/EnhancedRouteTabs.java

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Simplify this regular expression to reduce its runtime, as it has super-linear performance due to backtracking.

See more on https://sonarcloud.io/project/issues?id=FlowingCode_CommonsDemo&issues=AZ8FXsxVKxaADjZGQ4Er&open=AZ8FXsxVKxaADjZGQ4Er&pullRequest=159
}
RouterLink routerLink = getContent().addRouterLink(text, target);
routerLink.setHighlightCondition(HighlightConditions.sameLocation());
Expand Down Expand Up @@ -83,7 +83,7 @@
return first.isPresent() ? first.get() : null;
}

@Deprecated
@Deprecated(forRemoval = true, since = "4.1.0")
public void addLegacyTab(String label, Component content) {
Tab tab = new Tab(label);
getContent().add(tab);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ public void setOrientation(Orientation orientation) {
* @deprecated Use {@link #getColorScheme()}
* @return the theme attribute value
*/
@Deprecated
@Deprecated(forRemoval = true, since = "5.2.0")
public static String getThemeAttribute() {
ColorScheme scheme = getColorScheme();
return scheme == ColorScheme.LIGHT ? "" : scheme.getValue();
Expand All @@ -433,7 +433,7 @@ public static ColorScheme getColorScheme() {
* @param theme the theme attribute value
* @deprecated Use {@link #setColorScheme(Component, ColorScheme)}
*/
@Deprecated
@Deprecated(forRemoval = true, since = "5.2.0")
public static void applyThemeAttribute(Element element, String theme) {
Component c = element.getComponent().get();
if (theme.isEmpty()) {
Expand Down
Loading