假设我在同一个域下有一堆注释,它们的某些属性是通用的。
@Color
@interface Black {
/**
* The density of the color in range 0-255. If a non valid value is given, an
* exception will be thrown.
*
* @return the density of the color
*/
int density();
}
@Color
@interface Red {
//inherit javadoc from Black#density
int density();
}
@Red
中的评论说明了我想做什么。
还有比@see 标签更好的东西吗? (@see Black#density()
)
也许有一个 Maven 工具(插件)可以实现它?