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,
|
||||
selectionParameters,
|
||||
ctx,
|
||||
existingVariableNames );
|
||||
existingVariableNames
|
||||
);
|
||||
List<LifecycleCallbackMethodReference> afterMappingMethods =
|
||||
LifecycleCallbackFactory.afterMappingMethods( method, selectionParameters, ctx, existingVariableNames );
|
||||
|
||||
|
@ -161,7 +161,8 @@ public class SourceReference {
|
||||
|
||||
if ( parameter != null ) {
|
||||
reportMappingError( Message.PROPERTYMAPPING_NO_PROPERTY_IN_PARAMETER, parameter.getName(),
|
||||
Strings.join( Arrays.asList( sourcePropertyNames ), "." ) );
|
||||
Strings.join( Arrays.asList( sourcePropertyNames ), "." )
|
||||
);
|
||||
}
|
||||
else {
|
||||
int notFoundPropertyIndex;
|
||||
@ -204,10 +205,13 @@ public class SourceReference {
|
||||
|
||||
for ( Map.Entry<String, Accessor> getter : sourceReadAccessors.entrySet() ) {
|
||||
if ( getter.getKey().equals( entryName ) ) {
|
||||
newType = typeFactory.getReturnType( (DeclaredType) newType.getTypeMirror(),
|
||||
getter.getValue() );
|
||||
newType = typeFactory.getReturnType(
|
||||
(DeclaredType) newType.getTypeMirror(),
|
||||
getter.getValue()
|
||||
);
|
||||
sourceEntries.add( forSourceReference( entryName, getter.getValue(),
|
||||
sourcePresenceCheckers.get( entryName ), newType ) );
|
||||
sourcePresenceCheckers.get( entryName ), newType
|
||||
) );
|
||||
matchFound = true;
|
||||
break;
|
||||
}
|
||||
@ -221,7 +225,8 @@ public class SourceReference {
|
||||
|
||||
private void reportMappingError(Message msg, Object... objects) {
|
||||
messager.printMessage( method.getExecutable(), mapping.getMirror(), mapping.getSourceAnnotationValue(),
|
||||
msg, objects );
|
||||
msg, objects
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user