mapstruct / mapstruct/mapstruct-idea

Support for MapStruct SPI

Open
#91 10 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature
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:
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.