gpt4 book ai didi

java - 如何使用参数 @link 编写 javadoc @deprecated 方法

转载 作者:行者123 更新时间:2023-12-02 09:07:09 25 4
gpt4 key购买 nike

/**
* @deprecated As of release 4.1, replaced by {@link com.github.noraui.application.steps.WaitSteps#waitVisibilityOf(String, List<GherkinStepCondition>)}
*
*
*/
@Deprecated
public void checkElementVisible(String pageElement, List<GherkinStepCondition> conditions) throws
FailureException, TechnicalException {
String page = pageElement.split("-")[0];
String elementName = pageElement.split("-")[1];
checkElementVisible(Page.getInstance(page).getPageElementByKey('-' + elementName), true);
}

我有这个错误:

warning - Tag @link:illegal character: "60" in "com.github.noraui.application.steps.WaitSteps#waitInvisibilityOf(String, List<GherkinStepCondition>)"
warning - Tag @link:illegal character: "62" in "com.github.noraui.application.steps.WaitSteps#waitInvisibilityOf(String, List<GherkinStepCondition>)"

所以我尝试不带参数:

@deprecated As of release 4.1, replaced by {@link com.github.noraui.application.steps.WaitSteps#waitVisibilityOf()}

我有这个错误:

warning - Tag @link: can't find waitInvisibilityOf() in com.github.noraui.application.steps.WaitSteps

最佳答案

请尝试以下代码:

/**
* @deprecated As of release 4.1, replaced by {@link com.github.noraui.application.steps.WaitSteps#waitVisibilityOf(String, List)}
*/

这样List接口(interface)就没有参数化

关于java - 如何使用参数 @link 编写 javadoc @deprecated 方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59720597/

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