Eclipse 2024-03:文档标签@param类型无法解析,如何关闭错误标记?
解决Eclipse文档标签中@param类型错误标记的方法
全局设置(所有项目生效)
- 打开Eclipse偏好设置:Windows/Linux点顶部菜单栏的
Window→Preferences;Mac点Eclipse→Preferences - 依次展开
Java→Compiler→Javadoc - 在右侧「Javadoc Validation」区域,找到「Parameter type not resolvable」选项,将其错误级别从
Error改为Warning或Ignore - 点击「Apply and Close」,Eclipse会自动重新校验项目,错误标记即可消失
单个项目设置(仅当前项目生效)
- 右键目标项目,选择
Properties - 展开
Java Compiler→Javadoc - 勾选「Enable project specific settings」
- 找到「Parameter type not resolvable」选项,调整错误级别为
Warning或Ignore - 点击「Apply and Close」完成设置
内容的提问来源于stack exchange,提问作者Trainer
相关产品推荐
相关产品推荐

