#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 Christophe Labouisse
Ciaran Liedeman Ciaran Liedeman
Dilip Krishnan Dilip Krishnan
Dmytro Polovinkin
Ewald Volkert Ewald Volkert
Filip Hrisafov Filip Hrisafov
Gunnar Morling Gunnar Morling

View File

@ -120,16 +120,7 @@ public class MapMappingMethod extends MappingMethod {
); );
if ( keyAssignment == null ) { if ( keyAssignment == null ) {
keyAssignment = forgeMapping( keySourceRHS, keySourceType, keyTargetType ); 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 // find mapping method or conversion for value

View File

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