From 74f411faed0950b3a3339dc7d976bc042c34aacd Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Mon, 15 May 2017 15:58:02 -0700 Subject: [PATCH] Formatting --- .../boot/configurationmetadata/Deprecation.java | 4 ++-- .../configurationmetadata/JsonReaderTests.java | 15 +++++++-------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/Deprecation.java b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/Deprecation.java index 061d7a4629..0f9d228184 100644 --- a/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/Deprecation.java +++ b/spring-boot-tools/spring-boot-configuration-metadata/src/main/java/org/springframework/boot/configurationmetadata/Deprecation.java @@ -73,8 +73,8 @@ public class Deprecation implements Serializable { @Override public String toString() { - return "Deprecation{" + "level='" + this.level + '\'' + ", reason='" - + this.reason + '\'' + ", replacement='" + this.replacement + '\'' + '}'; + return "Deprecation{" + "level='" + this.level + '\'' + ", reason='" + this.reason + + '\'' + ", replacement='" + this.replacement + '\'' + '}'; } /** diff --git a/spring-boot-tools/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/JsonReaderTests.java b/spring-boot-tools/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/JsonReaderTests.java index 567c341daa..da8ebe832f 100644 --- a/spring-boot-tools/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/JsonReaderTests.java +++ b/spring-boot-tools/spring-boot-configuration-metadata/src/test/java/org/springframework/boot/configurationmetadata/JsonReaderTests.java @@ -157,8 +157,7 @@ public class JsonReaderTests extends AbstractConfigurationMetadataTests { .isEqualTo("Server namespace has moved to spring.server"); assertThat(item.getDeprecation().getReplacement()) .isEqualTo("server.spring.port"); - assertThat(item.getDeprecation().getLevel()) - .isEqualTo(Deprecation.Level.WARNING); + assertThat(item.getDeprecation().getLevel()).isEqualTo(Deprecation.Level.WARNING); ConfigurationMetadataItem item2 = items.get(1); assertProperty(item2, "server.cluster-name", "server.cluster-name", String.class, @@ -166,8 +165,7 @@ public class JsonReaderTests extends AbstractConfigurationMetadataTests { assertThat(item2.isDeprecated()).isTrue(); assertThat(item2.getDeprecation().getReason()).isNull(); assertThat(item2.getDeprecation().getReplacement()).isNull(); - assertThat(item.getDeprecation().getLevel()) - .isEqualTo(Deprecation.Level.WARNING); + assertThat(item.getDeprecation().getLevel()).isEqualTo(Deprecation.Level.WARNING); ConfigurationMetadataItem item3 = items.get(2); assertProperty(item3, "spring.server.name", "spring.server.name", String.class, @@ -176,16 +174,17 @@ public class JsonReaderTests extends AbstractConfigurationMetadataTests { assertThat(item3.getDeprecation()).isEqualTo(null); ConfigurationMetadataItem item4 = items.get(3); - assertProperty(item4, "spring.server-name", "spring.server-name", String.class, null); + assertProperty(item4, "spring.server-name", "spring.server-name", String.class, + null); assertThat(item4.isDeprecated()).isTrue(); assertThat(item4.getDeprecation().getReason()).isNull(); assertThat(item4.getDeprecation().getReplacement()) .isEqualTo("spring.server.name"); - assertThat(item4.getDeprecation().getLevel()) - .isEqualTo(Deprecation.Level.ERROR); + assertThat(item4.getDeprecation().getLevel()).isEqualTo(Deprecation.Level.ERROR); ConfigurationMetadataItem item5 = items.get(4); - assertProperty(item5, "spring.server-name2", "spring.server-name2", String.class, null); + assertProperty(item5, "spring.server-name2", "spring.server-name2", String.class, + null); assertThat(item5.isDeprecated()).isTrue(); assertThat(item5.getDeprecation().getReason()).isNull(); assertThat(item5.getDeprecation().getReplacement())