Default attributes for UAnnotations

Why 

org.jetbrains.uast.UAnnotation#findAttributeValue

do not return default attribute value if it is not provided on the usage side? It returns null.

0
2 comments
Official comment

There is no guarantee that default attribute declaration is convertible to UAST (especially if there is no sources avaliable). You'll get more stable results if you'll work via `UAnnotation.javaPsi`

What is the problem with enum annotation parameters except maybe the same as in previous paragraph?

Also, how to get enum annotation parameter from UAnnotation?

0

Please sign in to leave a comment.