Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[K2] Properties inherited from Java fields/synthetic properties with types that can be nullable shown as nullable #3675

Open
atyrin opened this issue Jul 5, 2024 · 0 comments
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888

Comments

@atyrin
Copy link
Contributor

atyrin commented Jul 5, 2024

// Java:
public class Parent {
    public String parentField;
}

// Kotlin:
class Child: Parent()

In K1 the parentField on Child page shown as a String
image

In K2 in it String?
image

Probably it is a good practice to consider Java code as nullable, but formally it is not a correct type.

NB: on Parent page Dokka shows a non-nullable type String

  • Dokka version: 2.0.0
@atyrin atyrin added bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888 labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug topic: K2 Issues / PRs that are related to the K2 migration. See #2888
Projects
None yet
Development

No branches or pull requests

1 participant