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
|
Christophe Labouisse
|
||||||
Ciaran Liedeman
|
Ciaran Liedeman
|
||||||
Dilip Krishnan
|
Dilip Krishnan
|
||||||
|
Dmytro Polovinkin
|
||||||
Ewald Volkert
|
Ewald Volkert
|
||||||
Filip Hrisafov
|
Filip Hrisafov
|
||||||
Gunnar Morling
|
Gunnar Morling
|
||||||
|
@ -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
|
||||||
|
@ -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 {"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user