Skip to content

Commit 2ee73a6

Browse files
committed
Merge pull request #20872 from Konrado85
* pr/20872: Change PropertiesLauncher equals method to use URI Closes gh-20872
2 parents 41f4614 + 9f4c39c commit 2ee73a6

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)