Reformat annotationArgumentsImpl.kt
This commit is contained in:
+2
-2
@@ -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(
|
||||||
|
|||||||
Reference in New Issue
Block a user