mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#122 Minor formatting changes
This commit is contained in:
parent
5dd0097cc9
commit
75fa2fb0f7
@ -206,7 +206,8 @@ public class BeanMappingMethod extends NormalTypeMappingMethod {
|
|||||||
method,
|
method,
|
||||||
selectionParameters,
|
selectionParameters,
|
||||||
ctx,
|
ctx,
|
||||||
existingVariableNames );
|
existingVariableNames
|
||||||
|
);
|
||||||
List<LifecycleCallbackMethodReference> afterMappingMethods =
|
List<LifecycleCallbackMethodReference> afterMappingMethods =
|
||||||
LifecycleCallbackFactory.afterMappingMethods( method, selectionParameters, ctx, existingVariableNames );
|
LifecycleCallbackFactory.afterMappingMethods( method, selectionParameters, ctx, existingVariableNames );
|
||||||
|
|
||||||
|
@ -161,7 +161,8 @@ public class SourceReference {
|
|||||||
|
|
||||||
if ( parameter != null ) {
|
if ( parameter != null ) {
|
||||||
reportMappingError( Message.PROPERTYMAPPING_NO_PROPERTY_IN_PARAMETER, parameter.getName(),
|
reportMappingError( Message.PROPERTYMAPPING_NO_PROPERTY_IN_PARAMETER, parameter.getName(),
|
||||||
Strings.join( Arrays.asList( sourcePropertyNames ), "." ) );
|
Strings.join( Arrays.asList( sourcePropertyNames ), "." )
|
||||||
|
);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
int notFoundPropertyIndex;
|
int notFoundPropertyIndex;
|
||||||
@ -204,10 +205,13 @@ public class SourceReference {
|
|||||||
|
|
||||||
for ( Map.Entry<String, Accessor> getter : sourceReadAccessors.entrySet() ) {
|
for ( Map.Entry<String, Accessor> getter : sourceReadAccessors.entrySet() ) {
|
||||||
if ( getter.getKey().equals( entryName ) ) {
|
if ( getter.getKey().equals( entryName ) ) {
|
||||||
newType = typeFactory.getReturnType( (DeclaredType) newType.getTypeMirror(),
|
newType = typeFactory.getReturnType(
|
||||||
getter.getValue() );
|
(DeclaredType) newType.getTypeMirror(),
|
||||||
|
getter.getValue()
|
||||||
|
);
|
||||||
sourceEntries.add( forSourceReference( entryName, getter.getValue(),
|
sourceEntries.add( forSourceReference( entryName, getter.getValue(),
|
||||||
sourcePresenceCheckers.get( entryName ), newType ) );
|
sourcePresenceCheckers.get( entryName ), newType
|
||||||
|
) );
|
||||||
matchFound = true;
|
matchFound = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@ -221,7 +225,8 @@ public class SourceReference {
|
|||||||
|
|
||||||
private void reportMappingError(Message msg, Object... objects) {
|
private void reportMappingError(Message msg, Object... objects) {
|
||||||
messager.printMessage( method.getExecutable(), mapping.getMirror(), mapping.getSourceAnnotationValue(),
|
messager.printMessage( method.getExecutable(), mapping.getMirror(), mapping.getSourceAnnotationValue(),
|
||||||
msg, objects );
|
msg, objects
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user