diff --git a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastProperties.java b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastProperties.java index bf5fec8c98..45d5930081 100644 --- a/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastProperties.java +++ b/spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/hazelcast/HazelcastProperties.java @@ -52,8 +52,8 @@ public class HazelcastProperties { if (this.config == null) { return null; } - Assert.isTrue(this.config.exists(), () -> "Hazelcast configuration does not exist '" - + this.config.getDescription() + "'"); + Assert.isTrue(this.config.exists(), () -> "Hazelcast configuration does not " + + "exist '" + this.config.getDescription() + "'"); return this.config; } diff --git a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/archive/ArchiveCommand.java b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/archive/ArchiveCommand.java index a61eea16af..eced4919e5 100644 --- a/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/archive/ArchiveCommand.java +++ b/spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/archive/ArchiveCommand.java @@ -124,8 +124,9 @@ abstract class ArchiveCommand extends OptionParsingCommand { protected ExitStatus run(OptionSet options) throws Exception { List nonOptionArguments = new ArrayList( 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( diff --git a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java index b6aff273fc..101f4d66a9 100644 --- a/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java +++ b/spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/restart/classloader/ClassLoaderFile.java @@ -56,7 +56,8 @@ public class ClassLoaderFile implements Serializable { public ClassLoaderFile(Kind kind, long lastModified, byte[] contents) { Assert.notNull(kind, "Kind must not be null"); Assert.isTrue(kind == Kind.DELETED ? contents == null : contents != null, - () -> "Contents must " + (kind == Kind.DELETED ? "" : "not ") + "be null"); + () -> "Contents must " + (kind == Kind.DELETED ? "" : "not ") + + "be null"); this.kind = kind; this.lastModified = lastModified; this.contents = contents;