How can I prevent a package-private interface appearing in Javadoc?

I have a class like this:

package org.jjerms.thing;

interface IThing {
    void doSomething();
}

final class Thing implements IThing {
    /**
     * This Javadoc pretends (to users outside the package) 
     * that doSomething originates here.
     */   
    public void doSomething() {
        // some code...
    }
}

And when I look at Javadoc for Thing # doSomething in Eclipse, but from a different package, the Javadoc viewer talks about IThing (it says soSomething specified in IThing).

Can this be prevented? I do not want customers to know anything about IThing.

+3
source share
1 answer

Pass -exclude to the javadoc tool . If you want more control, use this .

Happy coding.

+5
source

Source: https://habr.com/ru/post/1719606/


All Articles