Polish "Use Supplier variants of Assert methods"

Closes gh-12630
This commit is contained in:
Stephane Nicoll
2018-03-26 17:59:35 +02:00
parent 3b0f6e7168
commit 553b184248
3 changed files with 7 additions and 5 deletions

View File

@@ -124,8 +124,9 @@ abstract class ArchiveCommand extends OptionParsingCommand {
protected ExitStatus run(OptionSet options) throws Exception {
List<?> nonOptionArguments = new ArrayList<Object>(
options.nonOptionArguments());
Assert.isTrue(nonOptionArguments.size() >= 2, () -> "The name of the resulting "
+ this.type + " and at least one source file must be specified");
Assert.isTrue(nonOptionArguments.size() >= 2, () -> "The name of the "
+ "resulting" + this.type + " and at least one source file must be "
+ "specified");
File output = new File((String) nonOptionArguments.remove(0));
Assert.isTrue(