From 9f4c39c985d9402c0784875af7e8f772cc596238 Mon Sep 17 00:00:00 2001 From: Konrado85 <63104554+Konrado85@users.noreply.github.com> Date: Tue, 7 Apr 2020 18:05:11 +0200 Subject: [PATCH] Change PropertiesLauncher equals method to use URI See gh-20872 --- .../org/springframework/boot/loader/PropertiesLauncher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java index 110ab7dbc76..5481457d2d5 100755 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java @@ -516,7 +516,7 @@ public class PropertiesLauncher extends Launcher { private List getNestedArchives(String path) throws Exception { Archive parent = this.parent; String root = path; - if (!root.equals("/") && root.startsWith("/") || parent.getUrl().equals(this.home.toURI().toURL())) { + if (!root.equals("/") && root.startsWith("/") || parent.getUrl().toURI().equals(this.home.toURI())) { // If home dir is same as parent archive, no need to add it twice. return null; }