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); }