Javadoc @link to Kotlin classes

Viewed 3578

This is my javadoc

/**
 * If you wish to add this fragment to your activity, you must implement {@link com.example.app.BlaActivity BlaActivity}
 *
 * @return an instance of BlaFragment
 */

BlaActivity is a Kotlin class. When I hover over the method with the javadoc above, the popup says:

If you wish to add this fragment to your activity, you must implement

Returns:
        an instance of BlaFragment

So, it does not show my Kotlin class in the popup. However it works fine when I use a Java class.

Javadoc has no support for Kotlin classes?

2 Answers

Kotlin have different syntax for linking. Base on kotlinlang.org

Instead of

{@link com.example.app.BlaActivity}

Use [ like this

[com.example.app.BlaActivity]

It works fine in my project, please try to update your kotlin version and plugin to the latest version because mine are all latest.

Related