Don't count on split removing trailing empty entries.

This commit is contained in:
Ilya Gorbunov
2015-04-03 22:06:51 +03:00
parent 7b77ce58a5
commit 409209ba3c
@@ -60,7 +60,7 @@ public abstract class AbstractClsStubBuilderTest : LightCodeInsightFixtureTestCa
}
private fun lastSegment(sourcePath: String): String {
return Files.getNameWithoutExtension(sourcePath.split("/").last())!!
return Files.getNameWithoutExtension(sourcePath.split('/').last { !it.isEmpty() })!!
}
}