diff --git a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java index c5775ef2eb..fac4d445d4 100644 --- a/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java +++ b/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java @@ -478,7 +478,6 @@ public class PropertiesLauncher extends Launcher { URISyntaxException { ClassLoader parentClassLoader = getClass().getClassLoader(); if (parentClassLoader instanceof URLClassLoader) { - @SuppressWarnings("resource") URLClassLoader urlClassLoader = (URLClassLoader) parentClassLoader; for (URL url : urlClassLoader.getURLs()) { if (url.toString().endsWith(".jar") || url.toString().endsWith(".zip")) { diff --git a/spring-boot/src/test/resources/map.yml b/spring-boot/src/test/resources/map.yml new file mode 100644 index 0000000000..3ced7a2ed7 --- /dev/null +++ b/spring-boot/src/test/resources/map.yml @@ -0,0 +1,5 @@ +mymap: + ? key1.key2 + : value12 + ? key3 + : value3 \ No newline at end of file