Make all hierarchies of JavaAnnotationArgument sealed
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -20,7 +20,7 @@ import org.jetbrains.kotlin.load.java.structure.*
|
||||
import org.jetbrains.kotlin.name.ClassId
|
||||
import org.jetbrains.kotlin.name.Name
|
||||
|
||||
abstract class ReflectJavaAnnotationArgument(
|
||||
sealed class ReflectJavaAnnotationArgument(
|
||||
override val name: Name?
|
||||
) : JavaAnnotationArgument {
|
||||
companion object Factory {
|
||||
|
||||
Reference in New Issue
Block a user