Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork41
Open
Description
Ifissue#3072 in mapstruct is merged the idea-plugin will give false errors for fluent remover's.
Given the Source class:
public class Source { private List<String> strings = new ArrayList<>(); public List<String> getStrings() { return strings; } public void setStrings(List<String> strings) { this.strings = strings; }}and the Target class:
public class Target { private List<String> strings = new ArrayList<>(); public List<String> getStrings() { return strings; } public void setStrings(List<String> strings) { this.strings = strings; } public Target strings(List<String> strings) { this.strings.addAll( strings ); return this; } public Target addString(String string) { strings.add( string ); return this; } public Target removeString(String string) { strings.remove( string ); return this; }}and finally this Mapper:
@Mapperpublic interface MapperWithRemoverInTarget { Target map(Source source);}the plugin should no longer produce any warnings nor errors.
Metadata
Metadata
Assignees
Labels
No labels