mapstruct / mapstruct/mapstruct-idea
Support for MapStruct SPI
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 168
- Forks
- 41
- PR merge metrics
- No merged PRs in 30d
Description
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:

Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in IntelliJ IDEA with a custom AccessorNamingStrategy SPI that excludes withXXX accessors. Compare the SPI behavior with the mapping suggestions shown by the plugin. The work is done when excluded withXXX methods no longer appear as suggested mappings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100