mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
marketplace plugin: treat snapshot build as a max_version build (IDEA-237012)
GitOrigin-RevId: c87590d35c994bc3bafe4d1370f6d0466bc0ec0c
This commit is contained in:
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) {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user