From 328f670be9a556430a0ffe609aef8661b5cd2de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Sat, 11 Jan 2025 18:10:40 +0100 Subject: [PATCH] Migrate to FileSystemResource wherever necessary Closes gh-43777 --- .../boot/env/ConfigTreePropertySource.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java index becea918c40..521b275a098 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/env/ConfigTreePropertySource.java @@ -1,5 +1,5 @@ /* - * Copyright 2012-2024 the original author or authors. + * Copyright 2012-2025 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -43,8 +43,8 @@ import org.springframework.boot.origin.TextResourceOrigin.Location; import org.springframework.core.env.EnumerablePropertySource; import org.springframework.core.env.Environment; import org.springframework.core.env.PropertySource; +import org.springframework.core.io.FileSystemResource; import org.springframework.core.io.InputStreamSource; -import org.springframework.core.io.PathResource; import org.springframework.core.io.Resource; import org.springframework.util.Assert; import org.springframework.util.FileCopyUtils; @@ -176,7 +176,7 @@ public class ConfigTreePropertySource extends EnumerablePropertySource imp private final Path path; - private final PathResource resource; + private final FileSystemResource resource; private final Origin origin; @@ -186,7 +186,7 @@ public class ConfigTreePropertySource extends EnumerablePropertySource imp private PropertyFile(Path path, Set