From d8d012ea86c5a0a1e600ed60f4c904cdf060aac3 Mon Sep 17 00:00:00 2001 From: Anton Makeev Date: Thu, 2 Jul 2015 16:10:45 +0200 Subject: [PATCH] FileUtil.toCanonicalPath can now expand symlinks when it's required to build the valid path that contains /../ * typos in JavaDoc fixed --- platform/util/src/com/intellij/openapi/util/io/FileUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/openapi/util/io/FileUtil.java b/platform/util/src/com/intellij/openapi/util/io/FileUtil.java index e48f1b4d995f..2db6dbc66d78 100644 --- a/platform/util/src/com/intellij/openapi/util/io/FileUtil.java +++ b/platform/util/src/com/intellij/openapi/util/io/FileUtil.java @@ -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.
*
- * 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) {