Don't count on split removing trailing empty entries.
This commit is contained in:
+1
-1
@@ -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() })!!
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user