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