Releases: mapstruct/mapstruct-idea
Releases · mapstruct/mapstruct-idea
1.9.1
Enhancements
- Improve messages for unknown reference (#223)
- Disable unknown properties on mapping composition annotations (#236)
Bug fixes
- Target properties with collection getter are not properly recognized (#217)
- Valid String
ValueMappingis incorrectly marked as error (#218) - Properties with Lombok SuperBuilder are not properly resolved (#220)
- References of
qualifiedByNamework for protected methods that are not accessible by MapStruct (#226) - Mapping enum that implements an interface leads to "Unmapped target property" warning (#235)
- Setters in Java Records should not be recognized (#232)
- Inspection "Target property must not be mapped more than once" incorrectly flags multiple mappings to "." (#241)
Minimum Supported IntelliJ
- 2024.1
1.9.0
1.8.0
1.7.0
Features
- New
@MappingInspections (#153)- No source defined
- More than one source defined. Quick fixes:
- Remove
source - Remove
constant - Remove
expression - Use
constantasdefaultValue - Use
expressionasdefaultExpression
- Remove
- More than one default source defined
- Remove
defaultValue - Remove
defaultExpression
- Remove
Enhancements
- Align
@InheritConfigurationwith MapStruct core and support auto inheritance (#151) - Support collection getters as viable target setter (#149)
- Support java expression in
conditionExpression(#154) - Align expression support with MapStruct core (#164, #170)
- Disable unmapped target property warnings when implicitly mapping from a map (#167)
- Support java text blocks for expressions (#188)
Bug fixes
- Code completion doesn't work with Lombok
@SuperBuilderannotation #159
Minimum Supported Intellij
- 2022.2
1.6.1
1.6.0
Features
- Support
@InheritConfigurationfor unmapped target properties inspection (#65)
Enhancements
- Use
unmappedTargetPolicyfor severity for unmapped target properties inspection
Bug fixes
- Missing completion and go to declaration for
Mapping#qualifiedByNamein `MapperConfig (#136) - Incorrect unmapped target property when using Mapping Composition within Mapping Composition (#125)
- Autocompletion for nested records (#117)
- Incorrect unmapped target property when
Mapping#targetcontains a dot (#123) - Incorrect unmapped target property with fluent setters (#121)
Minimum Supported Intellij
- 2021.2
1.5.0
1.4.0
Enhancements
- Support for Java records (#99)
- Suppress redundant default parameter value assignment warning (#93)
- Suggest only missing constants for
ValueMapping#source(#5) - Find disabled builder in
@MapperConfig(#97)
Bugs
- No language injection for expressions when target is a field (#95)
Build
- Improve build/test infrastructure to support IDEA 2022.2/2022.3 and Java 17 (#113)
Minimum Supported Intellij
- 2021.2
1.3.1
1.3.0
Features
- Code completion for
BeanMapping#ignoreUnmappedSourceProperties(#77) - Quick Fix: support for configuring the order of source and target in
@Mappingfor "Add unmapped property" fix (#51) - Support for Mapstruct explicit Builder disable (#67)
Bugs
- Code completion for generic builder not working (#78)
- Code completion uses builder constructor parameters (#78)
Minimum Supported Intellij
- 2020.1