Skip to content

Commit

Permalink
Remove check that Java version output must start with "java version"
Browse files Browse the repository at this point in the history
Signed-off-by: Mesbah-Alam <Mesbah_Alam@ca.ibm.com>
  • Loading branch information
Mesbah-Alam committed Jul 9, 2021
1 parent 6abbb82 commit 0beb3f0
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,6 @@ private JavaVersion(boolean isPrimaryJvm, String javaHome) throws StfException {
if (javaVersionOutput.startsWith("openjdk version")) {
javaVersionOutput = javaVersionOutput.replace("openjdk", "java");
}

// Sanity check. Verify that the output appears correct
if (!javaVersionOutput.startsWith("java version")) {
throw new StfException("'Java -version' output does not start with 'java version'. Actual output was: " + javaVersionOutput);
}
}

public static JavaVersion getInstance(StfEnvironmentCore environmentCore) throws StfException {
Expand Down

0 comments on commit 0beb3f0

Please sign in to comment.