mapstruct / mapstruct/mapstruct-idea
Check unknown target properties in new `@Ignored` annotation
未关闭
还没有人认领这个 Issue。
feature
- 主要语言
- Java
- 星标
- 168
- 派生
- 41
- PR 合并指标
- 30 天内没有已合并 PR
描述
Referencing a target that does not exist results in a compilation error.
Therefore we should support the check of target properties (MapstructTargetReference) for that annotation.
interface FooMapper {
@Ignored(targets = "nonExistent") // mark this as unknown
CarDto map(Car car);
}
This should also work for nested properties like @Ignored(targets = "driver.name").
Beware that writing it as an array must also work:
@Ignored(targets = { "a", "b" })
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 MapstructTargetReference 以及 @Ignored 注解中对目标的处理。验证未知的简单目标、如 driver.name 这样的嵌套属性,以及包含多个目标的数组语法;当每个无效目标都被报告为编译错误时,即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100