FileUtil.toCanonicalPath can now expand symlinks when it's required to build the valid path that contains /../

* typos in JavaDoc fixed
This commit is contained in:
Anton Makeev
2015-07-02 16:12:13 +02:00
parent 526af6f1c1
commit d8d012ea86
@@ -647,7 +647,7 @@ public class FileUtil extends FileUtilRt {
* Please note that this method is symlink-unfriendly (i.e. result of "/path/to/link/../next" most probably will differ from
* what {@link java.io.File#getCanonicalPath()} will return) - so use with care.<br>
* <br>
* If the path may contain synlinks, use use {@link FileUtil#toCanonicalPath(String, boolean)}
* If the path may contain symlinks, use {@link FileUtil#toCanonicalPath(String, boolean)} instead.
*/
@Contract("null -> null")
public static String toCanonicalPath(@Nullable String path) {