From 6b7f0bd4b60e54169817f5ff155a717100efe73e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Tue, 11 Jun 2024 06:47:42 +0200 Subject: [PATCH] Fix typo --- .../src/main/java/org/springframework/util/StringUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/util/StringUtils.java b/spring-core/src/main/java/org/springframework/util/StringUtils.java index b423239c0a1d..c72a55172a07 100644 --- a/spring-core/src/main/java/org/springframework/util/StringUtils.java +++ b/spring-core/src/main/java/org/springframework/util/StringUtils.java @@ -71,7 +71,7 @@ public abstract class StringUtils { private static final String WINDOWS_FOLDER_SEPARATOR = "\\"; - private static final String DOUBLE_BACKLASHES = "\\\\"; + private static final String DOUBLE_BACKSLASHES = "\\\\"; private static final String TOP_PATH = ".."; @@ -708,7 +708,7 @@ public static String cleanPath(String path) { String normalizedPath; // Optimize when there is no backslash if (path.indexOf('\\') != -1) { - normalizedPath = replace(path, DOUBLE_BACKLASHES, FOLDER_SEPARATOR); + normalizedPath = replace(path, DOUBLE_BACKSLASHES, FOLDER_SEPARATOR); normalizedPath = replace(normalizedPath, WINDOWS_FOLDER_SEPARATOR, FOLDER_SEPARATOR); } else {