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

@@ -94,7 +94,7 @@ public final class CommandLineInvoker {
File bin = new File(unpacked.listFiles()[0], "bin");
File launchScript = new File(bin, isWindows() ? "spring.bat" : "spring");
Assert.state(launchScript.exists() && launchScript.isFile(),
"Could not find CLI launch script " + launchScript.getAbsolutePath());
() -> "Could not find CLI launch script " + launchScript.getAbsolutePath());
return launchScript;
}