Make fun local since it's bound to outer function semantics
This commit is contained in:
+6
-6
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user