From cb100f973cc0ae260fe516901af5629447ad6457 Mon Sep 17 00:00:00 2001 From: YasasRangika Date: Tue, 26 Nov 2024 11:56:57 +0530 Subject: [PATCH] Fix formatting --- .../web/reactive/function/server/PathResourceLookupFunction.java | 1 + .../web/servlet/function/PathResourceLookupFunction.java | 1 + 2 files changed, 2 insertions(+) diff --git a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/PathResourceLookupFunction.java b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/PathResourceLookupFunction.java index 357f3933ae9a..06e4f88971ba 100644 --- a/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/PathResourceLookupFunction.java +++ b/spring-webflux/src/main/java/org/springframework/web/reactive/function/server/PathResourceLookupFunction.java @@ -127,6 +127,7 @@ private String cleanDuplicateSlashes(String path) { } return (sb != null ? sb.toString() : path); } + private String cleanLeadingSlash(String path) { boolean slash = false; for (int i = 0; i < path.length(); i++) { diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/PathResourceLookupFunction.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/PathResourceLookupFunction.java index 9b1809c2ff96..84691a595924 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/function/PathResourceLookupFunction.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/function/PathResourceLookupFunction.java @@ -127,6 +127,7 @@ private String cleanDuplicateSlashes(String path) { } return sb != null ? sb.toString() : path; } + private String cleanLeadingSlash(String path) { boolean slash = false; for (int i = 0; i < path.length(); i++) {