Fix method name typo (#3622)

This commit is contained in:
Obolrom 2024-09-02 09:44:17 +03:00 committed by GitHub
parent c6010c917a
commit 1e89d7497b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -299,7 +299,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
boolean applyImplicitMappings = boolean applyImplicitMappings =
shouldHandledDefinedMappings && !mappingReferences.isRestrictToDefinedMappings(); shouldHandledDefinedMappings && !mappingReferences.isRestrictToDefinedMappings();
if ( applyImplicitMappings ) { if ( applyImplicitMappings ) {
applyImplicitMappings = beanMapping == null || !beanMapping.isignoreByDefault(); applyImplicitMappings = beanMapping == null || !beanMapping.isIgnoredByDefault();
} }
if ( applyImplicitMappings ) { if ( applyImplicitMappings ) {
@ -1699,7 +1699,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
return ReportingPolicyGem.IGNORE; return ReportingPolicyGem.IGNORE;
} }
// If we have ignoreByDefault = true, unprocessed target properties are not an issue. // 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; return ReportingPolicyGem.IGNORE;
} }
if ( method.getOptions().getBeanMapping() != null ) { if ( method.getOptions().getBeanMapping() != null ) {

View File

@ -223,7 +223,7 @@ public class BeanMappingOptions extends DelegatingOptions {
return selectionParameters; return selectionParameters;
} }
public boolean isignoreByDefault() { public boolean isIgnoredByDefault() {
return Optional.ofNullable( beanMapping ).map( BeanMappingGem::ignoreByDefault ) return Optional.ofNullable( beanMapping ).map( BeanMappingGem::ignoreByDefault )
.map( GemValue::get ) .map( GemValue::get )
.orElse( false ); .orElse( false );

View File

@ -565,7 +565,7 @@ public class MapperCreationProcessor implements ModelElementProcessor<List<Sourc
} }
// @BeanMapping( ignoreByDefault = true ) // @BeanMapping( ignoreByDefault = true )
if ( mappingOptions.getBeanMapping() != null && mappingOptions.getBeanMapping().isignoreByDefault() ) { if ( mappingOptions.getBeanMapping() != null && mappingOptions.getBeanMapping().isIgnoredByDefault() ) {
mappingOptions.applyIgnoreAll( method, typeFactory, mappingContext.getMessager() ); mappingOptions.applyIgnoreAll( method, typeFactory, mappingContext.getMessager() );
} }