style: code simplification

Resolves #1129
This commit is contained in:
Romain
2024-03-23 18:26:41 +01:00
committed by Oleg Zhurakousky
parent 7969d06fc8
commit f9954d7dbd
4 changed files with 12 additions and 18 deletions

View File

@@ -88,7 +88,10 @@ final public class LocalServerTestSupport {
File javaHome = new File(System.getProperty("java.home"));
assertThat(javaHome.exists()).isTrue();
File javaBin = new File(javaHome, "bin");
File javaCommand = new File(javaBin, "java");
File javaCommand = new File(javaBin, "java.exe");
if (!javaCommand.exists()) {
javaCommand = new File(javaBin, "java");
}
assertThat(javaCommand.exists()).isTrue();
String myClassPath = System.getProperty("java.class.path");
assertThat(myClassPath).isNotNull();