#60 automapping removing commented-out-code and copyright

This commit is contained in:
sjaakd 2016-12-19 21:44:36 +01:00
parent 81ce66044f
commit d398618aa5
3 changed files with 5 additions and 13 deletions

View File

@ -6,6 +6,7 @@ Christian Schuster
Christophe Labouisse
Ciaran Liedeman
Dilip Krishnan
Dmytro Polovinkin
Ewald Volkert
Filip Hrisafov
Gunnar Morling

View File

@ -120,16 +120,7 @@ public class MapMappingMethod extends MappingMethod {
);
if ( keyAssignment == null ) {
keyAssignment = forgeMapping( keySourceRHS, keySourceType, keyTargetType );
// if ( method instanceof ForgedMethod ) {
// // leave messaging to calling property mapping
// return null;
// }
// else {
// ctx.getMessager().printMessage( method.getExecutable(),
// Message.MAPMAPPING_KEY_MAPPING_NOT_FOUND );
// }
}
// find mapping method or conversion for value

View File

@ -82,10 +82,6 @@ public class PropertyMapping extends ModelElement {
private final Assignment defaultValueAssignment;
private List<ForgedMethod> forgedMethods = new ArrayList<ForgedMethod>();
public List<ForgedMethod> getForgedMethods() {
return forgedMethods;
}
private enum TargetWriteAccessorType {
FIELD,
GETTER,
@ -967,6 +963,10 @@ public class PropertyMapping extends ModelElement {
return dependsOn;
}
public List<ForgedMethod> getForgedMethods() {
return forgedMethods;
}
@Override
public String toString() {
return "PropertyMapping {"