You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What we see in generated documentation with default documentedVisibilities (Public API only):
For Java property with protected getter/setter is shown
For inheritor in Kotlin both properties are shown
Expected behaviour
My expectation is that all protected properties are hidden. But probably for an open class, they might be shown with the visibility modifier.
Installation
Dokka version: 1.7.0
Kotlin: 1.7.0
The text was updated successfully, but these errors were encountered:
Incorrect mapping of Java's Protected visibility, it resolved to Kotlin's Public. Fixed it, now Java.Protected -> Kotlin.Protected
non-public-api fields with accessors that are public api were hardcoded to be Kotlin.Public, that was a mistake. Made it so that property visibility is inherited from getter's visibility. So for a field with a protected getter it will generate a protected kotlin property
In that case for the inheritor in Kotlin Dokka doesn't show the property but it is available. If protected switch to e.g. private then property is shown.
Let's have a code like:
and inheritor
What we see in generated documentation with default
documentedVisibilities
(Public API only):For Java property with protected getter/setter is shown
For inheritor in Kotlin both properties are shown
Expected behaviour
My expectation is that all protected properties are hidden. But probably for an open class, they might be shown with the visibility modifier.
Installation
The text was updated successfully, but these errors were encountered: