StdLib cleanup, deprecated symbol usage: List and Map members

This commit is contained in:
Ilya Gorbunov
2015-11-14 06:21:17 +03:00
parent 838109c302
commit dadcdb5771
15 changed files with 51 additions and 51 deletions
@@ -368,7 +368,7 @@ public fun File.normalize(): File {
when (name) {
"." -> {
}
".." -> if (!list.isEmpty() && list.get(list.size - 1) != "..") list.remove(list.size - 1) else list.add(name)
".." -> if (!list.isEmpty() && list.get(list.size - 1) != "..") list.removeAt(list.size - 1) else list.add(name)
else -> list.add(name)
}
}