From 75e0dfb8f3024cc677b42491aa83988d76b285f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tr=E1=BA=A7n=20V=C4=A9nh=20Thi=E1=BB=87n=20Ph=C3=BAc?= Date: Tue, 24 Dec 2024 11:45:53 +0700 Subject: [PATCH] MARP-975 Handle Feedbacks --- .../com/axonivy/market/service/impl/ProductServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java b/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java index 7ad5535d..efdf0273 100644 --- a/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java +++ b/marketplace-service/src/main/java/com/axonivy/market/service/impl/ProductServiceImpl.java @@ -69,7 +69,6 @@ import static com.axonivy.market.enums.DocumentField.SHORT_DESCRIPTIONS; import static com.axonivy.market.enums.FileStatus.ADDED; import static com.axonivy.market.enums.FileStatus.MODIFIED; -import static com.axonivy.market.util.VersionUtils.getPrefixOfVersion; import static java.util.Optional.ofNullable; import static org.apache.commons.lang3.StringUtils.EMPTY; @@ -777,7 +776,7 @@ private String getCompatibilityRange(String productId) { } String maxVersion = splitVersion(versions.get(0)).concat(PLUS); String minVersion = splitVersion(versions.get(versions.size() - 1)); - return getPrefixOfVersion(minVersion).equals(getPrefixOfVersion(maxVersion)) ? + return VersionUtils.getPrefixOfVersion(minVersion).equals(VersionUtils.getPrefixOfVersion(maxVersion)) ? minVersion.concat(PLUS) : String.format(COMPATIBILITY_RANGE_FORMAT, minVersion, maxVersion); }).orElse(null); }