Make all hierarchies of JavaAnnotationArgument sealed

This commit is contained in:
Dmitriy Novozhilov
2021-03-04 15:09:47 +03:00
parent 1f6ce874a1
commit ca26c193ae
2 changed files with 2 additions and 2 deletions
@@ -279,7 +279,7 @@ class BinaryJavaAnnotationVisitor(
} }
} }
abstract class PlainJavaAnnotationArgument(name: String?) : JavaAnnotationArgument { sealed class PlainJavaAnnotationArgument(name: String?) : JavaAnnotationArgument {
override val name: Name? = name?.takeIf(Name::isValidIdentifier)?.let(Name::identifier) override val name: Name? = name?.takeIf(Name::isValidIdentifier)?.let(Name::identifier)
} }
@@ -20,7 +20,7 @@ import org.jetbrains.kotlin.load.java.structure.*
import org.jetbrains.kotlin.name.ClassId import org.jetbrains.kotlin.name.ClassId
import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.name.Name
abstract class ReflectJavaAnnotationArgument( sealed class ReflectJavaAnnotationArgument(
override val name: Name? override val name: Name?
) : JavaAnnotationArgument { ) : JavaAnnotationArgument {
companion object Factory { companion object Factory {