Skip to content

Commit 720b7c1

Browse files
committed
Merge branch '6.1.x'
2 parents 68e6b15 + 6b7f0bd commit 720b7c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-core/src/main/java/org/springframework/util/StringUtils.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public abstract class StringUtils {
7272

7373
private static final String WINDOWS_FOLDER_SEPARATOR = "\\";
7474

75-
private static final String DOUBLE_BACKLASHES = "\\\\";
75+
private static final String DOUBLE_BACKSLASHES = "\\\\";
7676

7777
private static final String TOP_PATH = "..";
7878

@@ -713,7 +713,7 @@ public static String cleanPath(String path) {
713713
String normalizedPath;
714714
// Optimize when there is no backslash
715715
if (path.indexOf('\\') != -1) {
716-
normalizedPath = replace(path, DOUBLE_BACKLASHES, FOLDER_SEPARATOR);
716+
normalizedPath = replace(path, DOUBLE_BACKSLASHES, FOLDER_SEPARATOR);
717717
normalizedPath = replace(normalizedPath, WINDOWS_FOLDER_SEPARATOR, FOLDER_SEPARATOR);
718718
}
719719
else {

0 commit comments

Comments
 (0)