Reformat annotationArgumentsImpl.kt

This commit is contained in:
Dmitriy Novozhilov
2021-03-04 15:06:58 +03:00
parent bd7689d381
commit 745aa620d0
@@ -44,7 +44,7 @@ abstract class JavaAnnotationArgumentImpl(
is PsiReferenceExpression -> JavaEnumValueAnnotationArgumentImpl(argument, name) is PsiReferenceExpression -> JavaEnumValueAnnotationArgumentImpl(argument, name)
is PsiArrayInitializerMemberValue -> JavaArrayAnnotationArgumentImpl(argument, name) is PsiArrayInitializerMemberValue -> JavaArrayAnnotationArgumentImpl(argument, name)
is PsiAnnotation -> JavaAnnotationAsAnnotationArgumentImpl(argument, name) is PsiAnnotation -> JavaAnnotationAsAnnotationArgumentImpl(argument, name)
else -> throw UnsupportedOperationException("Unsupported annotation argument type: " + argument) else -> throw UnsupportedOperationException("Unsupported annotation argument type: $argument")
} }
} }
} }
@@ -59,7 +59,7 @@ class JavaArrayAnnotationArgumentImpl(
private val psiValue: PsiArrayInitializerMemberValue, private val psiValue: PsiArrayInitializerMemberValue,
name: Name? name: Name?
) : JavaAnnotationArgumentImpl(name), JavaArrayAnnotationArgument { ) : JavaAnnotationArgumentImpl(name), JavaArrayAnnotationArgument {
override fun getElements() = psiValue.initializers.map { JavaAnnotationArgumentImpl.create(it, null) } override fun getElements() = psiValue.initializers.map { create(it, null) }
} }
class JavaEnumValueAnnotationArgumentImpl( class JavaEnumValueAnnotationArgumentImpl(