mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Fix method name typo (#3622)
This commit is contained in:
parent
c6010c917a
commit
1e89d7497b
@ -299,7 +299,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
||||
boolean applyImplicitMappings =
|
||||
shouldHandledDefinedMappings && !mappingReferences.isRestrictToDefinedMappings();
|
||||
if ( applyImplicitMappings ) {
|
||||
applyImplicitMappings = beanMapping == null || !beanMapping.isignoreByDefault();
|
||||
applyImplicitMappings = beanMapping == null || !beanMapping.isIgnoredByDefault();
|
||||
}
|
||||
if ( applyImplicitMappings ) {
|
||||
|
||||
@ -1699,7 +1699,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
||||
return ReportingPolicyGem.IGNORE;
|
||||
}
|
||||
// If we have ignoreByDefault = true, unprocessed target properties are not an issue.
|
||||
if ( method.getOptions().getBeanMapping().isignoreByDefault() ) {
|
||||
if ( method.getOptions().getBeanMapping().isIgnoredByDefault() ) {
|
||||
return ReportingPolicyGem.IGNORE;
|
||||
}
|
||||
if ( method.getOptions().getBeanMapping() != null ) {
|
||||
|
@ -223,7 +223,7 @@ public class BeanMappingOptions extends DelegatingOptions {
|
||||
return selectionParameters;
|
||||
}
|
||||
|
||||
public boolean isignoreByDefault() {
|
||||
public boolean isIgnoredByDefault() {
|
||||
return Optional.ofNullable( beanMapping ).map( BeanMappingGem::ignoreByDefault )
|
||||
.map( GemValue::get )
|
||||
.orElse( false );
|
||||
|
@ -565,7 +565,7 @@ public class MapperCreationProcessor implements ModelElementProcessor<List<Sourc
|
||||
}
|
||||
|
||||
// @BeanMapping( ignoreByDefault = true )
|
||||
if ( mappingOptions.getBeanMapping() != null && mappingOptions.getBeanMapping().isignoreByDefault() ) {
|
||||
if ( mappingOptions.getBeanMapping() != null && mappingOptions.getBeanMapping().isIgnoredByDefault() ) {
|
||||
mappingOptions.applyIgnoreAll( method, typeFactory, mappingContext.getMessager() );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user