From 24bfe5087f5afa26c6662009b6848cd1b9986764 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Wed, 8 May 2024 18:28:09 -0700 Subject: [PATCH] Fix checkstyle violation See gh-40549 --- .../boot/loader/net/protocol/nested/NestedLocation.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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() {