Use Assert.state() with Supplier where possible
See gh-10658
This commit is contained in:
committed by
Stephane Nicoll
parent
3e18213362
commit
3b71393e0a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user