diff --git a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/nested/NestedLocation.java b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/nested/NestedLocation.java index f9106fbc0789..84352f184c67 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/nested/NestedLocation.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-loader/src/main/java/org/springframework/boot/loader/net/protocol/nested/NestedLocation.java @@ -106,9 +106,8 @@ private static NestedLocation create(String location) { } private static Path asPath(String locationPath) { - return pathCache.computeIfAbsent(locationPath, (key) -> { - return Path.of((!isWindows()) ? locationPath : fixWindowsLocationPath(locationPath)); - }); + return pathCache.computeIfAbsent(locationPath, + (key) -> Path.of((!isWindows()) ? locationPath : fixWindowsLocationPath(locationPath))); } private static boolean isWindows() {