Skip to content

Commit 2981c10

Browse files
author
Vlad Dumitrescu
committed
fix detection of stable otp versions
Change-Id: I59db0a218acf55ffd4f7277b898cae46600259f2
1 parent b3e6b5f commit 2981c10

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

plugins/org.erlide.runtime/src/org/erlide/runtime/runtimeinfo/RuntimeVersion.java

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -174,14 +174,9 @@ public boolean isStable() {
174174
if (update_level == null) {
175175
return true;
176176
}
177-
try {
178-
// "-rc1" is unstable, but ".15" is stable
179-
// The first character is a separator
180-
Integer.parseInt(update_level.substring(1));
181-
return true;
182-
} catch (final NumberFormatException e) {
183-
return false;
184-
}
177+
// "-rc1" is unstable, but ".15" and ".12.1" is stable
178+
// The first character is a separator
179+
return !update_level.startsWith("-");
185180
}
186181

187182
public int getMajor() {

0 commit comments

Comments
 (0)