mapstruct / mapstruct/mapstruct-idea
Remove warnings for fluent removers.
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 168
- 派生
- 41
- PR 合并指标
- 30 天内没有已合并 PR
描述
If issue#3072 in mapstruct is merged the idea-plugin will give false errors for fluent remover's.
Given the Source class:
public class Source {
private List<String> strings = new ArrayList<>();
public List<String> getStrings() {
return strings;
}
public void setStrings(List<String> strings) {
this.strings = strings;
}
}
and the Target class:
public class Target {
private List<String> strings = new ArrayList<>();
public List<String> getStrings() {
return strings;
}
public void setStrings(List<String> strings) {
this.strings = strings;
}
public Target strings(List<String> strings) {
this.strings.addAll( strings );
return this;
}
public Target addString(String string) {
strings.add( string );
return this;
}
public Target removeString(String string) {
strings.remove( string );
return this;
}
}
and finally this Mapper:
@Mapper
public interface MapperWithRemoverInTarget {
Target map(Source source);
}
the plugin should no longer produce any warnings nor errors.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 IntelliJ IDEA plugin 中使用 issue #3072 的 fluent-remover 更改,复现 Source、Target 和 MapperWithRemoverInTarget 示例。跟踪检查 Target 方法的 diagnostics;完成的标准是该示例不产生任何警告或错误。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- tooling
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 45/100