首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何编写带有参数@link的javadoc @deprecated方法

如何编写带有参数@link的javadoc @deprecated方法
EN

Stack Overflow用户
提问于 2020-01-14 00:36:16
回答 1查看 119关注 0票数 0
代码语言:javascript
复制
/**
 * @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);
}

我有这个错误:

代码语言:javascript
复制
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>)"

因此,我尝试不使用参数:

代码语言:javascript
复制
@deprecated As of release 4.1, replaced by {@link com.github.noraui.application.steps.WaitSteps#waitVisibilityOf()}

我有这个错误:

代码语言:javascript
复制
warning - Tag @link: can't find waitInvisibilityOf() in com.github.noraui.application.steps.WaitSteps
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-01-14 04:40:52

请尝试下面的代码:

代码语言:javascript
复制
/**
 * @deprecated As of release 4.1, replaced by {@link com.github.noraui.application.steps.WaitSteps#waitVisibilityOf(String, List)}
 */

因此不存在List接口参数化

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59720597

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档