Use Assert.state() with Supplier where possible

See gh-10658
This commit is contained in:
dreis2211
2017-10-16 22:06:58 +02:00
committed by Stephane Nicoll
parent 3e18213362
commit 3b71393e0a
21 changed files with 28 additions and 27 deletions

View File

@@ -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;
}