如何防止出现在Javadoc中的包私有接口?

jje*_*rms 3 java api javadoc

我有一个这样的课:

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...
    }
}
Run Code Online (Sandbox Code Playgroud)

当我在Eclipse中查看Javadoc for Thing#doSomething但是从另一个包中查看时,Javadoc查看器会讨论IThing(它表示在IThing中指定了soSomething).

我可以阻止这个吗?我不希望客户对IThing有任何了解.

rec*_*les 5

传递 - 解包到javadoc工具.如果你想要更多的控制,那么使用.

快乐的编码.