File tree 1 file changed +2
-2
lines changed
spring-core/src/main/java/org/springframework/util
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ public abstract class StringUtils {
72
72
73
73
private static final String WINDOWS_FOLDER_SEPARATOR = "\\ " ;
74
74
75
- private static final String DOUBLE_BACKLASHES = "\\ \\ " ;
75
+ private static final String DOUBLE_BACKSLASHES = "\\ \\ " ;
76
76
77
77
private static final String TOP_PATH = ".." ;
78
78
@@ -713,7 +713,7 @@ public static String cleanPath(String path) {
713
713
String normalizedPath ;
714
714
// Optimize when there is no backslash
715
715
if (path .indexOf ('\\' ) != -1 ) {
716
- normalizedPath = replace (path , DOUBLE_BACKLASHES , FOLDER_SEPARATOR );
716
+ normalizedPath = replace (path , DOUBLE_BACKSLASHES , FOLDER_SEPARATOR );
717
717
normalizedPath = replace (normalizedPath , WINDOWS_FOLDER_SEPARATOR , FOLDER_SEPARATOR );
718
718
}
719
719
else {
You can’t perform that action at this time.
0 commit comments