Skip to content

Commit 9f4c39c

Browse files
Konrado85snicoll
authored andcommitted
Change PropertiesLauncher equals method to use URI
See gh-20872
1 parent 41f4614 commit 9f4c39c

File tree

1 file changed

+1
-1
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/PropertiesLauncher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@ private boolean isNestedArchivePath(File file) {
516516
private List<Archive> getNestedArchives(String path) throws Exception {
517517
Archive parent = this.parent;
518518
String root = path;
519-
if (!root.equals("/") && root.startsWith("/") || parent.getUrl().equals(this.home.toURI().toURL())) {
519+
if (!root.equals("/") && root.startsWith("/") || parent.getUrl().toURI().equals(this.home.toURI())) {
520520
// If home dir is same as parent archive, no need to add it twice.
521521
return null;
522522
}

0 commit comments

Comments
 (0)