Missing annotation values for static imports #2580
Labels
bug
feedback: Google
An issue/PR submitted by colleagues at Google, most likely related to the Android API reference docs
Some annotation values which are statically imported constants are not showing up in docs. For example, this function has the annotation
@RequiresPermission(ACCESS_FINE_LOCATION)
where the constant comes fromimport static android.Manifest.permission.ACCESS_FINE_LOCATION;
, but the annotation value shows up as the empty string in the docs. Some annotations in the same file use a set of constant values, which are not showing up at all.It seems this was addressed in #1845 with the
JvmAnnotationAttribute.toValue
function inDefaultPsiToDocumentableTranslator
, but in this case theattributeValue
of theJvmAnnotationAttribute
is not aJvmAnnotationEnumFieldValue
(it is aPsiAnnotationConstantValue
), so that solution doesn't work here:Installation
Operating system: macOS
Build tool: Gradle v7.3
Dokka version: 1.6.20-dev-154
The text was updated successfully, but these errors were encountered: