mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
doGetRelative — use getNameSequence instead of getName +review
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user