mapstruct / mapstruct/mapstruct-idea
Find usages and renaming for constructor fields
未关闭
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 168
- 派生
- 41
- PR 合并指标
- 30 天内没有已合并 PR
描述
I've been trying to make this work. However, there are some problems with the custom ConstructorParametersReferencesSearcher that I've implemented. Find usages works properly. However, that causes some other problems:
- When I rename the constructor parameter in the constructor method then my element in the annotation is not renamed. This is tested by
MapstructMethodUsagesSearcherTest.testRenameConstructorTargetReferenceMethod - When I rename the element in the annotation and the class is in the same file as my annotation there is an error happening. This is tested in
RenameHandlerTest.testRenameConstructorTargetParameter. When I run the plugin in an IDE and the class is not in the same file as my annotation then the renaming is correct.
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从自定义的 ConstructorParametersReferencesSearcher 和以下两个指定测试开始:MapstructMethodUsagesSearcherTest.testRenameConstructorTargetReferenceMethod 以及 RenameHandlerTest.testRenameConstructorTargetParameter。重现这两个构造函数参数重命名场景,并检查它们的失败情况。完成的标准是两个测试都通过,包括在类与注解元素位于同一文件时对该注解元素进行重命名且不报错。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- devtools
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100