Remove unneeded default imports in stdlib and tests
This commit is contained in:
+1
-2
@@ -8,7 +8,6 @@ package org.jetbrains.kotlin.tools
|
||||
import kotlinx.metadata.jvm.*
|
||||
import org.objectweb.asm.Opcodes
|
||||
import org.objectweb.asm.tree.*
|
||||
import kotlin.comparisons.*
|
||||
|
||||
val ACCESS_NAMES = mapOf(
|
||||
Opcodes.ACC_PUBLIC to "public",
|
||||
@@ -187,4 +186,4 @@ private fun findAnnotation(annotationName: String, visibleAnnotations: List<Anno
|
||||
visibleAnnotations?.firstOrNull { it.refersToName(annotationName) }
|
||||
?: if (includeInvisible) invisibleAnnotations?.firstOrNull { it.refersToName(annotationName) } else null
|
||||
|
||||
fun AnnotationNode.refersToName(name: String) = desc.startsWith('L') && desc.endsWith(';') && desc.regionMatches(1, name, 0, name.length)
|
||||
fun AnnotationNode.refersToName(name: String) = desc.startsWith('L') && desc.endsWith(';') && desc.regionMatches(1, name, 0, name.length)
|
||||
|
||||
Reference in New Issue
Block a user