marketplace plugin: treat snapshot build as a max_version build (IDEA-237012)

GitOrigin-RevId: c87590d35c994bc3bafe4d1370f6d0466bc0ec0c
This commit is contained in:
Eugene Zhuravlev
2020-04-22 11:55:49 +00:00
committed by intellij-monorepo-bot
parent cc85647687
commit 081ac7f71f
@@ -352,13 +352,11 @@ public final class BootstrapClassLoaderUtil {
private static int parseMinor(String text) {
try {
if ("*".equals(text)) {
if ("*".equals(text) || "SNAPSHOT".equals(text)) {
return Integer.MAX_VALUE;
}
if (!"SNAPSHOT".equalsIgnoreCase(text)) {
final int dot = text.indexOf('.');
return Integer.parseInt(dot >= 0 ? text.substring(0, dot) : text);
}
final int dot = text.indexOf('.');
return Integer.parseInt(dot >= 0 ? text.substring(0, dot) : text);
}
catch (NumberFormatException e) {
}