From 2ba129e09ad7d75ea2abb56582aa493c8560e2f6 Mon Sep 17 00:00:00 2001 From: Vladimir Krivosheev Date: Wed, 2 Jul 2014 13:16:23 +0200 Subject: [PATCH] =?UTF-8?q?doGetRelative=20=E2=80=94=20use=20getNameSequen?= =?UTF-8?q?ce=20instead=20of=20getName=20+review?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java b/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java index bd4c9212aa74..cd0f15f3796c 100644 --- a/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java +++ b/platform/core-api/src/com/intellij/openapi/vfs/VfsUtilCore.java @@ -129,7 +129,7 @@ public class VfsUtilCore { if (length > 0) { length++; } - length += parent.getName().length(); + length += parent.getNameSequence().length(); parent = parent.getParent(); } @@ -141,7 +141,7 @@ public class VfsUtilCore { if (index < length) { chars[--index] = separator; } - String name = parent.getName(); + CharSequence name = parent.getNameSequence(); for (int i = name.length() - 1; i >= 0; i--) { chars[--index] = name.charAt(i); }