mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
fix typos in method and variable names (#3766)
This commit is contained in:
parent
0df3f6af95
commit
8de18e5a65
@ -186,7 +186,7 @@ public class SourceMethod implements Method {
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder setDefininingType(Type definingType) {
|
||||
public Builder setDefiningType(Type definingType) {
|
||||
this.definingType = definingType;
|
||||
return this;
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ public class MapperCreationProcessor implements ModelElementProcessor<List<Sourc
|
||||
addAllFieldsIn( mappingContext.getUsedSupportedMappings(), supportingFieldSet );
|
||||
fields.addAll( supportingFieldSet );
|
||||
|
||||
// handle constructorfragments
|
||||
// handle constructor fragments
|
||||
Set<SupportingConstructorFragment> constructorFragments = new LinkedHashSet<>();
|
||||
addAllFragmentsIn( mappingContext.getUsedSupportedMappings(), constructorFragments );
|
||||
|
||||
@ -632,7 +632,7 @@ public class MapperCreationProcessor implements ModelElementProcessor<List<Sourc
|
||||
reportErrorWhenSeveralNamesMatch( nameFilteredcandidates, method, inverseConfiguration );
|
||||
}
|
||||
else {
|
||||
reportErrorWhenAmbigousReverseMapping( candidates, method, inverseConfiguration );
|
||||
reportErrorWhenAmbiguousReverseMapping( candidates, method, inverseConfiguration );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -702,21 +702,21 @@ public class MapperCreationProcessor implements ModelElementProcessor<List<Sourc
|
||||
else if ( candidates.size() > 1 ) {
|
||||
// ambiguity: find a matching method that matches configuredBy
|
||||
|
||||
List<SourceMethod> nameFilteredcandidates = new ArrayList<>();
|
||||
List<SourceMethod> nameFilteredCandidates = new ArrayList<>();
|
||||
for ( SourceMethod candidate : candidates ) {
|
||||
if ( candidate.getName().equals( name ) ) {
|
||||
nameFilteredcandidates.add( candidate );
|
||||
nameFilteredCandidates.add( candidate );
|
||||
}
|
||||
}
|
||||
|
||||
if ( nameFilteredcandidates.size() == 1 ) {
|
||||
resultMethod = first( nameFilteredcandidates );
|
||||
if ( nameFilteredCandidates.size() == 1 ) {
|
||||
resultMethod = first( nameFilteredCandidates );
|
||||
}
|
||||
else if ( nameFilteredcandidates.size() > 1 ) {
|
||||
reportErrorWhenSeveralNamesMatch( nameFilteredcandidates, method, inheritConfiguration );
|
||||
else if ( nameFilteredCandidates.size() > 1 ) {
|
||||
reportErrorWhenSeveralNamesMatch( nameFilteredCandidates, method, inheritConfiguration );
|
||||
}
|
||||
else {
|
||||
reportErrorWhenAmbigousMapping( candidates, method, inheritConfiguration );
|
||||
reportErrorWhenAmbiguousMapping( candidates, method, inheritConfiguration );
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -729,8 +729,8 @@ public class MapperCreationProcessor implements ModelElementProcessor<List<Sourc
|
||||
return inheritConfiguration == null ? null : inheritConfiguration.mirror();
|
||||
}
|
||||
|
||||
private void reportErrorWhenAmbigousReverseMapping(List<SourceMethod> candidates, SourceMethod method,
|
||||
InheritInverseConfigurationGem inverseGem) {
|
||||
private void reportErrorWhenAmbiguousReverseMapping(List<SourceMethod> candidates, SourceMethod method,
|
||||
InheritInverseConfigurationGem inverseGem) {
|
||||
|
||||
List<String> candidateNames = new ArrayList<>();
|
||||
for ( SourceMethod candidate : candidates ) {
|
||||
@ -780,8 +780,8 @@ public class MapperCreationProcessor implements ModelElementProcessor<List<Sourc
|
||||
);
|
||||
}
|
||||
|
||||
private void reportErrorWhenAmbigousMapping(List<SourceMethod> candidates, SourceMethod method,
|
||||
InheritConfigurationGem gem) {
|
||||
private void reportErrorWhenAmbiguousMapping(List<SourceMethod> candidates, SourceMethod method,
|
||||
InheritConfigurationGem gem) {
|
||||
|
||||
List<String> candidateNames = new ArrayList<>();
|
||||
for ( SourceMethod candidate : candidates ) {
|
||||
|
@ -389,7 +389,7 @@ public class MethodRetrievalProcessor implements ModelElementProcessor<Void, Lis
|
||||
|
||||
return new SourceMethod.Builder()
|
||||
.setDeclaringMapper( usedMapper.equals( mapperToImplement ) ? null : usedMapperAsType )
|
||||
.setDefininingType( definingType )
|
||||
.setDefiningType( definingType )
|
||||
.setExecutable( method )
|
||||
.setParameters( parameters )
|
||||
.setReturnType( returnType )
|
||||
|
Loading…
x
Reference in New Issue
Block a user