Polish "Use Assert.state() with Supplier where possible"

Closes gh-10658
This commit is contained in:
Stephane Nicoll
2017-10-17 15:36:51 +02:00
parent 3b71393e0a
commit 2eba1c5f62
4 changed files with 8 additions and 7 deletions

View File

@@ -93,8 +93,8 @@ 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());
Assert.state(launchScript.exists() && launchScript.isFile(), () ->
"Could not find CLI launch script " + launchScript.getAbsolutePath());
return launchScript;
}