#122 Minor formatting changes

This commit is contained in:
navpil 2017-05-10 15:11:18 +03:00 committed by Filip Hrisafov
parent 5dd0097cc9
commit 75fa2fb0f7
2 changed files with 19 additions and 13 deletions

View File

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

View File

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