Skip to content

Commit 24a0320

Browse files
committed
spelling: sanitize
Signed-off-by: Josh Soref <[email protected]>
1 parent 0bc1950 commit 24a0320

File tree

1 file changed

+4
-4
lines changed
  • java/kotlin-extractor/src/main/java/com/semmle/util/files

1 file changed

+4
-4
lines changed

java/kotlin-extractor/src/main/java/com/semmle/util/files/FileUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,11 +1033,11 @@ public boolean accept (File pathname)
10331033
}
10341034

10351035
/**
1036-
* Santize path string To handle windows drive letters and cross-platform builds.
1036+
* Sanitize path string To handle windows drive letters and cross-platform builds.
10371037
* @param pathString to be sanitized
10381038
* @return sanitized path string
10391039
*/
1040-
private static String santizePathString(String pathString) {
1040+
private static String sanitizePathString(String pathString) {
10411041
// Replace ':' by '_', as the extractor does - to handle Windows drive letters
10421042
pathString = pathString.replace(':', '_');
10431043

@@ -1059,7 +1059,7 @@ private static String santizePathString(String pathString) {
10591059
*/
10601060
public static File appendAbsolutePath (File root, String absolutePath)
10611061
{
1062-
absolutePath = santizePathString(absolutePath);
1062+
absolutePath = sanitizePathString(absolutePath);
10631063

10641064
return new File(root, absolutePath).getAbsoluteFile();
10651065
}
@@ -1075,7 +1075,7 @@ public static File appendAbsolutePath (File root, String absolutePath)
10751075
*/
10761076
public static Path appendAbsolutePath(Path root, String absolutePathString){
10771077

1078-
absolutePathString = santizePathString(absolutePathString);
1078+
absolutePathString = sanitizePathString(absolutePathString);
10791079

10801080
Path path = Paths.get(absolutePathString);
10811081

0 commit comments

Comments
 (0)