From 9f224ff1364928e48c8efd9fe4be3e4ac474ae72 Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 16 Oct 2023 18:18:34 +0100 Subject: [PATCH] Narrow the scope of 0e3a196 to Resource[] for array binding See gh-15835 --- .../boot/context/properties/bind/BindConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/BindConverter.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/BindConverter.java index d98c31135c..d56c03e312 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/BindConverter.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/BindConverter.java @@ -198,7 +198,7 @@ final class BindConverter { @Override public Set getConvertibleTypes() { return Set.of(new ConvertiblePair(String.class, Object.class), - new ConvertiblePair(String.class, Object[].class), + new ConvertiblePair(String.class, Resource[].class), new ConvertiblePair(String.class, Collection.class)); }