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.
|
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).
|
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>
|
<bottom>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
|
@ -1364,7 +1364,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
|||||||
handledTargets.add( targetPropertyName );
|
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
|
// 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
|
// not generated any mapping for it now. Eventually it will be done though
|
||||||
else if ( mapping.getConstant() != null ) {
|
else if ( mapping.getConstant() != null ) {
|
||||||
@ -1384,7 +1384,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
|||||||
handledTargets.add( targetPropertyName );
|
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
|
// 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
|
// not generated any mapping for it now. Eventually it will be done though
|
||||||
else if ( mapping.getJavaExpression() != null ) {
|
else if ( mapping.getJavaExpression() != null ) {
|
||||||
@ -1400,7 +1400,7 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
|||||||
.build();
|
.build();
|
||||||
handledTargets.add( targetPropertyName );
|
handledTargets.add( targetPropertyName );
|
||||||
}
|
}
|
||||||
// its a plain-old property mapping
|
// it's a plain-old property mapping
|
||||||
else {
|
else {
|
||||||
|
|
||||||
SourceReference sourceRef = mappingRef.getSourceReference();
|
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}
|
* @return {@code true} if the type is not excluded from the {@link MappingExclusionProvider}
|
||||||
*/
|
*/
|
||||||
|
@ -226,7 +226,7 @@ public class NestedTargetPropertyMappingHolder {
|
|||||||
handledTargets.add( entryByTP.getKey() );
|
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
|
// However, here we do not forge name based mappings and we only
|
||||||
// do update on the defined Mappings.
|
// do update on the defined Mappings.
|
||||||
if ( !groupedSourceReferences.nonNested.isEmpty() ) {
|
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
|
* 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.
|
* that could not have been popped.
|
||||||
|
@ -274,7 +274,7 @@ public class ValueMappingMethod extends MappingMethod {
|
|||||||
return mappings;
|
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 ) {
|
for ( ValueMappingOptions valueMapping : valueMappings.regularValueMappings ) {
|
||||||
mappings.add( new MappingEntry( valueMapping.getSource(), valueMapping.getTarget() ) );
|
mappings.add( new MappingEntry( valueMapping.getSource(), valueMapping.getTarget() ) );
|
||||||
unmappedSourceConstants.remove( valueMapping.getSource() );
|
unmappedSourceConstants.remove( valueMapping.getSource() );
|
||||||
@ -305,7 +305,7 @@ public class ValueMappingMethod extends MappingMethod {
|
|||||||
}
|
}
|
||||||
Set<String> mappedSources = new LinkedHashSet<>();
|
Set<String> mappedSources = new LinkedHashSet<>();
|
||||||
|
|
||||||
// Start to fill the mappings with the defined valuemappings
|
// Start to fill the mappings with the defined value mappings
|
||||||
for ( ValueMappingOptions valueMapping : valueMappings.regularValueMappings ) {
|
for ( ValueMappingOptions valueMapping : valueMappings.regularValueMappings ) {
|
||||||
mappedSources.add( valueMapping.getSource() );
|
mappedSources.add( valueMapping.getSource() );
|
||||||
mappings.add( new MappingEntry( valueMapping.getSource(), valueMapping.getTarget() ) );
|
mappings.add( new MappingEntry( valueMapping.getSource(), valueMapping.getTarget() ) );
|
||||||
|
@ -68,7 +68,7 @@ public interface AccessorNamingStrategy {
|
|||||||
*
|
*
|
||||||
* @return getter name for collection properties
|
* @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
|
* 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.
|
* {@link #getMethodType(ExecutableElement) } as well. In the future, this method will be removed.
|
||||||
*/
|
*/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user