Make fun local since it's bound to outer function semantics

This commit is contained in:
Alexey Tsvetkov
2016-04-15 01:51:29 +03:00
parent 3340731c71
commit e0afb94628
@@ -53,6 +53,12 @@ class KotlinAnnotationProvider(private val annotationsReader: Reader) {
get() = kotlinClassesInternal.isNotEmpty()
private fun readAnnotations() {
fun handleShortenedName(cache: MutableMap<String, String>, lineParts: List<String>) {
val name = lineParts[1]
val id = lineParts[2]
cache.put(id, name)
}
val shortenedAnnotationCache = hashMapOf<String, String>()
val shortenedPackageNameCache = hashMapOf<String, String>()
@@ -110,10 +116,4 @@ class KotlinAnnotationProvider(private val annotationsReader: Reader) {
}
}
}
private fun handleShortenedName(cache: MutableMap<String, String>, lineParts: List<String>) {
val name = lineParts[1]
val id = lineParts[2]
cache.put(id, name)
}
}