Skip to content

Commit

Permalink
Merge pull request #36260 from zakkak/2023-10-02-cleanup-graalvm-vers…
Browse files Browse the repository at this point in the history
…ions-code

Fix GraalVM.Version#getVersionAsString
  • Loading branch information
gsmet authored Oct 3, 2023
2 parents 2b50f43 + 2e2c60d commit 9b886e4
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,11 @@ private static boolean isMandrel(String s) {
* Returns the Mandrel/GraalVM version as a string. e.g. 21.3.0-rc1
*/
public String getVersionAsString() {
return String.join(Arrays.stream(versions).mapToObj(Integer::toString).collect(Collectors.joining()), ".") + "-"
+ suffix;
String version = Arrays.stream(versions).mapToObj(Integer::toString).collect(Collectors.joining("."));
if (suffix != null) {
return version + "-" + suffix;
}
return version;
}

@Override
Expand Down

0 comments on commit 9b886e4

Please sign in to comment.