From 651f4f72360b970d1ad142dc7ffe1b8ddba8b22f Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Sun, 6 Nov 2022 11:30:06 +0000 Subject: [PATCH] Polish "Polish ImportCandidates" See gh-33013 --- .../boot/context/annotation/ImportCandidates.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/annotation/ImportCandidates.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/annotation/ImportCandidates.java index a3d9899569..8ab3572ef2 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/annotation/ImportCandidates.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/annotation/ImportCandidates.java @@ -93,8 +93,7 @@ public final class ImportCandidates implements Iterable { return classLoader.getResources(location); } catch (IOException ex) { - throw new IllegalArgumentException("Failed to load configurations from location [" + location + "]", - ex); + throw new IllegalArgumentException("Failed to load configurations from location [" + location + "]", ex); } }