Merge previously split strings

Merge some string lines that were previously split because of the
90 chars wide formatting.
This commit is contained in:
Phillip Webb
2019-07-14 19:39:18 +01:00
parent c3816bfe7b
commit 01933f9b06
173 changed files with 351 additions and 370 deletions

View File

@@ -110,7 +110,7 @@ abstract class ArchiveCommand extends OptionParsingCommand {
@Override
protected void doOptions() {
this.includeOption = option("include",
"Pattern applied to directories on the classpath to find files to " + "include in the resulting ")
"Pattern applied to directories on the classpath to find files to include in the resulting ")
.withRequiredArg().withValuesSeparatedBy(",").defaultsTo("");
this.excludeOption = option("exclude", "Pattern applied to directories on the classpath to find files to "
+ "exclude from the resulting " + this.type).withRequiredArg().withValuesSeparatedBy(",")
@@ -120,8 +120,8 @@ abstract class ArchiveCommand extends OptionParsingCommand {
@Override
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(output.getName().toLowerCase(Locale.ENGLISH).endsWith("." + this.type),

View File

@@ -32,8 +32,7 @@ import org.springframework.boot.loader.tools.LibraryScope;
public class JarCommand extends ArchiveCommand {
public JarCommand() {
super("jar", "Create a self-contained executable jar " + "file from a Spring Groovy script",
new JarOptionHandler());
super("jar", "Create a self-contained executable jar file from a Spring Groovy script", new JarOptionHandler());
}
private static final class JarOptionHandler extends ArchiveOptionHandler {

View File

@@ -36,8 +36,7 @@ import org.springframework.boot.loader.tools.LibraryScope;
public class WarCommand extends ArchiveCommand {
public WarCommand() {
super("war", "Create a self-contained executable war " + "file from a Spring Groovy script",
new WarOptionHandler());
super("war", "Create a self-contained executable war file from a Spring Groovy script", new WarOptionHandler());
}
private static final class WarOptionHandler extends ArchiveOptionHandler {
@@ -57,7 +56,7 @@ public class WarCommand extends ArchiveCommand {
@Override
protected void addCliClasses(JarWriter writer) throws IOException {
addClass(writer, null, "org.springframework.boot." + "cli.app.SpringApplicationWebApplicationInitializer");
addClass(writer, null, "org.springframework.boot.cli.app.SpringApplicationWebApplicationInitializer");
super.addCliClasses(writer);
}

View File

@@ -47,7 +47,7 @@ public class InitCommand extends OptionParsingCommand {
}
public InitCommand(InitOptionHandler handler) {
super("init", "Initialize a new project using Spring " + "Initializr (start.spring.io)", handler);
super("init", "Initialize a new project using Spring Initializr (start.spring.io)", handler);
}
@Override
@@ -140,7 +140,7 @@ public class InitCommand extends OptionParsingCommand {
this.packageName = option("package-name", "Package name").withRequiredArg();
this.type = option(Arrays.asList("type", "t"),
"Project type. Not normally needed if you use --build "
+ "and/or --format. Check the capabilities of the service " + "(--list) for more details")
+ "and/or --format. Check the capabilities of the service (--list) for more details")
.withRequiredArg();
this.packaging = option(Arrays.asList("packaging", "p"), "Project packaging (for example 'jar')")
.withRequiredArg();
@@ -155,7 +155,7 @@ public class InitCommand extends OptionParsingCommand {
this.bootVersion = option(Arrays.asList("boot-version", "b"),
"Spring Boot version (for example '1.2.0.RELEASE')").withRequiredArg();
this.dependencies = option(Arrays.asList("dependencies", "d"),
"Comma-separated list of dependency identifiers to include in the " + "generated project")
"Comma-separated list of dependency identifiers to include in the generated project")
.withRequiredArg();
}

View File

@@ -58,7 +58,7 @@ class ProjectGenerator {
}
if (fileName == null) {
throw new ReportableException("Could not save the project, the server did not set a preferred "
+ "file name and no location was set. Specify the output location " + "for the project.");
+ "file name and no location was set. Specify the output location for the project.");
}
writeProject(response, fileName, force);
}

View File

@@ -52,7 +52,7 @@ public class InstallCommand extends OptionParsingCommand {
protected ExitStatus run(OptionSet options) throws Exception {
List<String> args = (List<String>) options.nonOptionArguments();
Assert.notEmpty(args,
"Please specify at least one " + "dependency, in the form group:artifact:version, to install");
"Please specify at least one dependency, in the form group:artifact:version, to install");
try {
new Installer(options, this).install(args);
}

View File

@@ -142,7 +142,7 @@ public class Shell {
String version = getClass().getPackage().getImplementationVersion();
version = (version != null) ? " (v" + version + ")" : "";
System.out.println(ansi("Spring Boot", Code.BOLD).append(version, Code.FAINT));
System.out.println(ansi("Hit TAB to complete. Type 'help' and hit " + "RETURN for help, and 'exit' to quit."));
System.out.println(ansi("Hit TAB to complete. Type 'help' and hit RETURN for help, and 'exit' to quit."));
}
private void runInputLoop() throws Exception {

View File

@@ -135,7 +135,7 @@ public class DependencyManagementBomTransformation extends AnnotatedNodeASTTrans
&& ((ConstantExpression) valueExpression).getValue() instanceof String) {
return Arrays.asList((ConstantExpression) valueExpression);
}
reportError("@DependencyManagementBom requires an inline constant that is a " + "string or a string array",
reportError("@DependencyManagementBom requires an inline constant that is a string or a string array",
valueExpression);
return Collections.emptyList();
}
@@ -148,7 +148,7 @@ public class DependencyManagementBomTransformation extends AnnotatedNodeASTTrans
expressions.add((ConstantExpression) expression);
}
else {
reportError("Each entry in the array must be an " + "inline string constant", expression);
reportError("Each entry in the array must be an inline string constant", expression);
}
}
return expressions;