From c87340e5c1f956d9f98bb0f4ea320887385db735 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Fri, 24 Jun 2022 15:02:58 +0100 Subject: [PATCH] Remove unnecessary throws --- .../InheritanceMetadataGenerationTests.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/InheritanceMetadataGenerationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/InheritanceMetadataGenerationTests.java index 48c72172284..4e2692b0ae3 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/InheritanceMetadataGenerationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/test/java/org/springframework/boot/configurationprocessor/InheritanceMetadataGenerationTests.java @@ -30,7 +30,7 @@ import static org.assertj.core.api.Assertions.assertThat; class InheritanceMetadataGenerationTests extends AbstractMetadataGenerationTests { @Test - void childProperties() throws Exception { + void childProperties() { ConfigurationMetadata metadata = compile(ChildPropertiesConfig.class); assertThat(metadata).has(Metadata.withGroup("inheritance").fromSource(ChildPropertiesConfig.class)); assertThat(metadata).has(Metadata.withGroup("inheritance.nest").fromSource(ChildProperties.class)); @@ -45,7 +45,7 @@ class InheritanceMetadataGenerationTests extends AbstractMetadataGenerationTests } @Test - void overrideChildProperties() throws Exception { + void overrideChildProperties() { ConfigurationMetadata metadata = compile(OverrideChildPropertiesConfig.class); assertThat(metadata).has(Metadata.withGroup("inheritance").fromSource(OverrideChildPropertiesConfig.class)); assertThat(metadata).has(Metadata.withGroup("inheritance.nest").fromSource(OverrideChildProperties.class));