Skip to content

Commit

Permalink
use link::getURL instead of deprecated this::getURL
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Jan 25, 2024
1 parent fc1d816 commit f14a889
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ protected String getItemIdPrefix() {
protected @NotNull PageData getComponentData() {
return DataLayerBuilder.extending(super.getComponentData()).asPage()
.withTitle(this::getTitle)
.withLinkUrl(this::getURL)
.withLinkUrl(link::getURL)
.build();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public String getTitleType() {
protected @NotNull ComponentData getComponentData() {
return DataLayerBuilder.extending(super.getComponentData()).asComponent()
.withTitle(this::getTitle)
.withLinkUrl(this::getLinkURL)
.withLinkUrl(link::getURL)
.withDescription(this::getDescription)
.build();
}
Expand Down

0 comments on commit f14a889

Please sign in to comment.