简体   繁体   中英

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

I've got 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 the Javadoc for Thing#doSomething in Eclipse but from another package, the Javadoc viewer talks about IThing (it says soSomething specified in IThing).

Can I prevent this? I don't want clients to know anything about IThing.

-exclude传递给javadoc工具。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM