Skip to content

Commit 6b7f0bd

Browse files
committed
Fix typo
1 parent c97a895 commit 6b7f0bd

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
@@ -71,7 +71,7 @@ public abstract class StringUtils {
7171

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

74-
private static final String DOUBLE_BACKLASHES = "\\\\";
74+
private static final String DOUBLE_BACKSLASHES = "\\\\";
7575

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

@@ -708,7 +708,7 @@ public static String cleanPath(String path) {
708708
String normalizedPath;
709709
// Optimize when there is no backslash
710710
if (path.indexOf('\\') != -1) {
711-
normalizedPath = replace(path, DOUBLE_BACKLASHES, FOLDER_SEPARATOR);
711+
normalizedPath = replace(path, DOUBLE_BACKSLASHES, FOLDER_SEPARATOR);
712712
normalizedPath = replace(normalizedPath, WINDOWS_FOLDER_SEPARATOR, FOLDER_SEPARATOR);
713713
}
714714
else {

0 commit comments

Comments
 (0)