mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
Fix typos in comments (#3769)
This commit is contained in:
parent
8de18e5a65
commit
bee983cd3c
@ -130,7 +130,7 @@
|
||||
<!--
|
||||
There is a bug in JDK 11 (https://bugs.openjdk.java.net/browse/JDK-8215291) which doesn't work correctly when searching and adds undefined.
|
||||
It has been fixed since JDK 12, but not yet backported to JDK 11 (https://bugs.openjdk.java.net/browse/JDK-8244171).
|
||||
One workardound is https://stackoverflow.com/a/57284322/1115491.
|
||||
One workaround is https://stackoverflow.com/a/57284322/1115491.
|
||||
-->
|
||||
<bottom>
|
||||
<![CDATA[
|
||||
|
@ -1364,7 +1364,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
||||
handledTargets.add( targetPropertyName );
|
||||
}
|
||||
|
||||
// its a constant
|
||||
// it's a constant
|
||||
// if we have an unprocessed target that means that it most probably is nested and we should
|
||||
// not generated any mapping for it now. Eventually it will be done though
|
||||
else if ( mapping.getConstant() != null ) {
|
||||
@ -1384,7 +1384,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
||||
handledTargets.add( targetPropertyName );
|
||||
}
|
||||
|
||||
// its an expression
|
||||
// it's an expression
|
||||
// if we have an unprocessed target that means that it most probably is nested and we should
|
||||
// not generated any mapping for it now. Eventually it will be done though
|
||||
else if ( mapping.getJavaExpression() != null ) {
|
||||
@ -1400,7 +1400,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
||||
.build();
|
||||
handledTargets.add( targetPropertyName );
|
||||
}
|
||||
// its a plain-old property mapping
|
||||
// it's a plain-old property mapping
|
||||
else {
|
||||
|
||||
SourceReference sourceRef = mappingRef.getSourceReference();
|
||||
|
@ -259,7 +259,7 @@ public class MappingBuilderContext {
|
||||
}
|
||||
|
||||
/**
|
||||
* @param type that MapStruct wants to use to genrate an autoamtic sub-mapping for/from
|
||||
* @param type that MapStruct wants to use to generate an automatic sub-mapping for/from
|
||||
*
|
||||
* @return {@code true} if the type is not excluded from the {@link MappingExclusionProvider}
|
||||
*/
|
||||
|
@ -226,7 +226,7 @@ public class NestedTargetPropertyMappingHolder {
|
||||
handledTargets.add( entryByTP.getKey() );
|
||||
}
|
||||
|
||||
// For the nonNested mappings (assymetric) Mappings we also forge mappings
|
||||
// For the nonNested mappings (asymmetric) Mappings we also forge mappings
|
||||
// However, here we do not forge name based mappings and we only
|
||||
// do update on the defined Mappings.
|
||||
if ( !groupedSourceReferences.nonNested.isEmpty() ) {
|
||||
@ -755,7 +755,7 @@ public class NestedTargetPropertyMappingHolder {
|
||||
}
|
||||
|
||||
/**
|
||||
* This class is used to group Source references in respected to the nestings that they have.
|
||||
* This class is used to group Source references in respected to the nesting that they have.
|
||||
*
|
||||
* This class contains all groupings by Property Entries if they are nested, or a list of all the other options
|
||||
* that could not have been popped.
|
||||
|
@ -274,7 +274,7 @@ public class ValueMappingMethod extends MappingMethod {
|
||||
return mappings;
|
||||
}
|
||||
|
||||
// Start to fill the mappings with the defined valuemappings
|
||||
// Start to fill the mappings with the defined valueMappings
|
||||
for ( ValueMappingOptions valueMapping : valueMappings.regularValueMappings ) {
|
||||
mappings.add( new MappingEntry( valueMapping.getSource(), valueMapping.getTarget() ) );
|
||||
unmappedSourceConstants.remove( valueMapping.getSource() );
|
||||
|
@ -68,7 +68,7 @@ public interface AccessorNamingStrategy {
|
||||
*
|
||||
* @return getter name for collection properties
|
||||
*
|
||||
* @deprecated MapStuct will not call this method anymore. Use {@link #getMethodType(ExecutableElement)} to
|
||||
* @deprecated MapStruct will not call this method anymore. Use {@link #getMethodType(ExecutableElement)} to
|
||||
* determine the {@link MethodType}. When collections somehow need to be treated special, it should be done in
|
||||
* {@link #getMethodType(ExecutableElement) } as well. In the future, this method will be removed.
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user