Annotations on java parameters do not appear in Documentable #1694
Labels
bug
feedback: Google
An issue/PR submitted by colleagues at Google, most likely related to the Android API reference docs
Describe the bug
Tl;dr: public void foo(@nullable Integer arg1, @nonnull Integer arg2) cannot be handled in dokka: annotations on parameters don't work in java. Nullability is fairly important, and parameters seem to be the most common use case.
In our repo, we have the following two tests, which pass with the NOTE (which may be a bug in dokka as well):
And we have the following two tests, which fail in the java version, because the DParameter has no Annotations when coming from Java.
I believe this bug may also occur with the following input, but I don't have a test for it:
Screenshots
Dokka Configuration
Operating system: macOS/Windows/Linux
Build tool: Gradle v6.5.1
dokkaVersion = "1.4.20-dev-36"
Google's dokka-devsite-plugin project
The text was updated successfully, but these errors were encountered: