mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#60 automapping removing commented-out-code and copyright
This commit is contained in:
parent
81ce66044f
commit
d398618aa5
@ -6,6 +6,7 @@ Christian Schuster
|
||||
Christophe Labouisse
|
||||
Ciaran Liedeman
|
||||
Dilip Krishnan
|
||||
Dmytro Polovinkin
|
||||
Ewald Volkert
|
||||
Filip Hrisafov
|
||||
Gunnar Morling
|
||||
|
@ -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
|
||||
|
@ -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 {"
|
||||
|
Loading…
x
Reference in New Issue
Block a user