Support for MapStruct SPI
還沒有人認領這個 Issue。
評估
研究方向
首先,使用排除 withXXX 存取子方法的自訂 AccessorNamingStrategy SPI,在 IntelliJ IDEA 中重現問題。比較 SPI 的行為與 plugin 顯示的對應建議。當被排除的 withXXX 方法不再作為建議的對應出現時,工作就完成了。
由索引模型根據 Issue 內容生成。
描述
My DTOs are auto generated. each field is generated with an setter(setXXX) and chained accessor(withXXX). I wrote a customized AccessorNamingStrategy SPI to exclude those methods start with with and added the SPI to my project's preprocessor.
My SPI has successfully enlimited warnings of withXXX accessors. but in my IDEA, it still promotes the hits for adding withXXX mappings:

- 主要語言
- Java
- 星號
- 169
- 分支
- 42
- 平均合併
- 7 天 20 小時
- 30 天內合併 PR
- 2
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
mapstruct/mapstruct-idea 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 45/100
mapstruct/mapstruct-idea#274 · 2 則留言 ·
-
feature hack.commit.push
難度 3/5 1-2 天 新手友好度 68/100
mapstruct/mapstruct-idea#267 ·
-
feature hack.commit.push
難度 3/5 1-2 天 新手友好度 55/100
mapstruct/mapstruct-idea#266 ·
-
feature hack.commit.push
難度 3/5 1-2 天 新手友好度 75/100
mapstruct/mapstruct-idea#265 ·
-
難度 3/5 1-2 天 新手友好度 45/100
mapstruct/mapstruct-idea#257 · 1 則留言 ·
查看 mapstruct/mapstruct-idea 的全部 Issue
相似的 Issue
-
enhancement good first issue
難度 2/5 半天 新手友好度 66/100
apache/fineract-consumer-facing#175 ·
維護者通常 1 天內回覆
-
[BUG] 订单:会员凭订单号即可取消其他会员的待付款订单(取消接口不校验订单归属)可能已有人在做 @dadiyang 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 70/100
macrozheng/mall#1016 ·
-
[Bug] The producer summary counts an unreported client version as a second version and warns about a version mix可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 74/100
apache/rocketmq-dashboard#6110 ·
維護者通常 4 天內回覆
-
Feature:Resolution
難度 2/5 1-3 小時 新手友好度 72/100
intellij-elixir/intellij-elixir#4396 ·
維護者通常 1 天內回覆
-
Python 3.15 support可能已有人在做 @amnesiaof 今天認領。 未關閉L: python L: python:uv
難度 2/5 1-3 小時 新手友好度 72/100
dependabot/dependabot-core#16524 · 1 則留言 ·
維護者通常 1 天內回覆