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 @@ -71,7 +71,7 @@ public abstract class StringUtils {
71
71
72
72
private static final String WINDOWS_FOLDER_SEPARATOR = "\\ " ;
73
73
74
- private static final String DOUBLE_BACKLASHES = "\\ \\ " ;
74
+ private static final String DOUBLE_BACKSLASHES = "\\ \\ " ;
75
75
76
76
private static final String TOP_PATH = ".." ;
77
77
@@ -708,7 +708,7 @@ public static String cleanPath(String path) {
708
708
String normalizedPath ;
709
709
// Optimize when there is no backslash
710
710
if (path .indexOf ('\\' ) != -1 ) {
711
- normalizedPath = replace (path , DOUBLE_BACKLASHES , FOLDER_SEPARATOR );
711
+ normalizedPath = replace (path , DOUBLE_BACKSLASHES , FOLDER_SEPARATOR );
712
712
normalizedPath = replace (normalizedPath , WINDOWS_FOLDER_SEPARATOR , FOLDER_SEPARATOR );
713
713
}
714
714
else {
You can’t perform that action at this time.
0 commit comments