redhat-developer / redhat-developer/vscode-java
Import that is used in @code or @link in JavaDoc is marked as unused
未关闭
还没有人认领这个 Issue。
diagnostics
- 主要语言
- TypeScript
- 星标
- 2.3k
- 派生
- 546
- 平均合并
- 20 小时 1 分钟
- 30 天内合并 PR
- 11
描述
Imports that are only used in @code or @link of JavaDoc are marked as unused and Organize imports will remove them.
Environment
- Operating System: 20.04.2 LTS (Focal Fossa)
- JDK version: openjdk 11.0.6 2020-01-14
- Visual Studio Code version: 1.58.2
- Java extension version: v.0.81.0
Steps To Reproduce
- Check out https://github.com/fvclaus/vscode-java-javadoc-link-bug and open
App.java - Run
Organize imports
import java.util.HashSet;
/**
* Uses {@code HashSet#clear()}
*
*/

Current Result
Import is marked as unused and will be removed with Organize imports.
Expected Result
Import is not marked as unused and will not be removed with Organize imports.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 中链接的 App.java 复现开始,运行 Organize imports,以确认 {@code} 中的 HashSet 引用是如何处理的。根据该行为,跟踪未使用 import 的分析以及 JavaDoc 引用的处理。完成标准是:仅在 JavaDoc 中使用的 import 不会被 Organize imports 标记为未使用或删除。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, vscode
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100