From f14a889490983705f9121e8d14740ab075e66f4a Mon Sep 17 00:00:00 2001 From: Stefan Seifert Date: Thu, 25 Jan 2024 12:24:20 +0100 Subject: [PATCH] use link::getURL instead of deprecated this::getURL --- .../core/components/impl/models/helpers/LinkListItemV2Impl.java | 2 +- .../io/wcm/wcm/core/components/impl/models/v2/TeaserV2Impl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/helpers/LinkListItemV2Impl.java b/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/helpers/LinkListItemV2Impl.java index 1032df7..a15ce4a 100644 --- a/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/helpers/LinkListItemV2Impl.java +++ b/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/helpers/LinkListItemV2Impl.java @@ -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(); } diff --git a/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/v2/TeaserV2Impl.java b/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/v2/TeaserV2Impl.java index e605f20..31f78c1 100644 --- a/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/v2/TeaserV2Impl.java +++ b/bundles/core/src/main/java/io/wcm/wcm/core/components/impl/models/v2/TeaserV2Impl.java @@ -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(); }