Use Assert.state() with Supplier where possible
See gh-10658
This commit is contained in:
committed by
Stephane Nicoll
parent
3e18213362
commit
3b71393e0a
@@ -44,7 +44,7 @@ public class JavaExecutable {
|
||||
File bin = new File(new File(javaHome), "bin");
|
||||
File command = new File(bin, "java.exe");
|
||||
command = (command.exists() ? command : new File(bin, "java"));
|
||||
Assert.state(command.exists(), "Unable to find java in " + javaHome);
|
||||
Assert.state(command.exists(), () -> "Unable to find java in " + javaHome);
|
||||
return command;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user