Dokka: Javadoc is missing a lot of information

Created on 19 May 2017  路  4Comments  路  Source: Kotlin/dokka

With this simple test class:

package test;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class Test
{
    @NotNull
    public static String test(@Nullable String test) {
        if(test == null)
            return "null";
        return test.toLowerCase();
    }
}

Dokka is generating an incomplete documentation page for it in javadoc mode.

It is missing the "extends Object" information, the "Methods inherited from class java.lang.Object", the default constructor "Test()", the method annotations and the method parameter.


Page generated by dokka

image


Page generated by javadoc

image


The same is applied to Kotkin classes but it is missing less information then Java classes.

Example Kotlin class:

class TestKotlin {
    fun test(test: String?): String {
        if (test == null)
            return "null"
        return test.toLowerCase()
    }

Page generated by dokka

image


The most critical issues are the arguments missing in method information, the default constructor being omitted and the annotations which contains the @Documented decoration not being documented as they should.

All 4 comments

Any news on this matter?

It looks like javadocs are still missing the method summary, has there been any progress on this? I'm willing to look into this and try to fix it, I just don't want to put needless effort into it if someone else is working on it.

Yes and no. We'd really appreciate your help with this, @JJK3, just not now, because we're refactoring dokka quite extensively. We're changing the whole internal model, so fixing this javadoc format would be a waste of time, because it will have to be rewritten from scratch before the next big release (0.11.0).

As far as I know, this is fixed in new javadoc that was added in 1.4.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rbares picture rbares  路  4Comments

martinkocjan-tomtom picture martinkocjan-tomtom  路  6Comments

jaguililla picture jaguililla  路  4Comments

norswap picture norswap  路  4Comments

hamza1311 picture hamza1311  路  5Comments