gpt4 book ai didi

java - Java 文档的文档引用警告

转载 作者:行者123 更新时间:2023-11-29 05:49:27 24 4
gpt4 key购买 nike

以下是我的一种方法的 Java 文档。但是JDeveloper正在为 @see 部分提供警告消息

   /**
* Clears the selections on all the tables containig view sub types except the currently selected one
* @param exceptControl index of the sub type table whose selection needs to be preserved
* @see ViewSubTypeHandler#clearSubTypeTableSelection()
*/


Warning : Doc reference clearSubTypeTableSelection not found.

这是什么警告消息,我该如何解决?

这是引发警告的方法的代码:

 private void clearSubTypeTableSelection(boolean resetAll, int exceptControl) {
if (!resetAll) {
clearAllExceptCurrent(exceptControl);
} else {
clearAll();
}

}

这是相关 javadoc 的方法:

private void clearAllExceptCurrent(int exceptControl) {
for (int i = 0; i < SUBTYPE_TABLES; i++)
if (i != exceptControl && getSubTypeTable(i).getSelectedRowKeys() != null) {
RichTable richTable = getSubTypeTable(i);
RowKeySet rowkeySet = richTable.getSelectedRowKeys();
rowkeySet.clear();
AdfFacesContext.getCurrentInstance().addPartialTarget(richTable);
}
}

最佳答案

你的方法是clearSubTypeTableSelection(boolean resetAll, int exceptControl)

不是clearSubTypeTableSelection()

您必须指定参数(类型):

 * @see ViewSubTypeHandler#clearSubTypeTableSelection(boolean, int)

关于java - Java 文档的文档引用警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14504412/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com