fix typos in method and variable names (#3766)

This commit is contained in:
hsjni0110 2024-11-14 05:35:20 +09:00 committed by GitHub
parent 0df3f6af95
commit 8de18e5a65
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 15 deletions

View File

@ -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;
}

View File

@ -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 ) {

View File

@ -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 )