Modifier and Type | Method and Description |
---|---|
static String |
canonicalPath(File file)
Get canonical path and replace file separators by forward slash.
|
static String |
sanitize(String path)
Normalize path and replace file separators by forward slash
|
@CheckForNull public static String sanitize(@Nullable String path)
@CheckForNull public static String canonicalPath(@Nullable File file)
Copyright © 2009–2018 SonarSource. All rights reserved.