Skip to content

Commit d398618

Browse files
author
sjaakd
committed
mapstruct#60 automapping removing commented-out-code and copyright
1 parent 81ce660 commit d398618

3 files changed

Lines changed: 5 additions & 13 deletions

File tree

copyright.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Christian Schuster
66
Christophe Labouisse
77
Ciaran Liedeman
88
Dilip Krishnan
9+
Dmytro Polovinkin
910
Ewald Volkert
1011
Filip Hrisafov
1112
Gunnar Morling

processor/src/main/java/org/mapstruct/ap/internal/model/MapMappingMethod.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -120,16 +120,7 @@ public MapMappingMethod build() {
120120
);
121121

122122
if ( keyAssignment == null ) {
123-
124123
keyAssignment = forgeMapping( keySourceRHS, keySourceType, keyTargetType );
125-
// if ( method instanceof ForgedMethod ) {
126-
// // leave messaging to calling property mapping
127-
// return null;
128-
// }
129-
// else {
130-
// ctx.getMessager().printMessage( method.getExecutable(),
131-
// Message.MAPMAPPING_KEY_MAPPING_NOT_FOUND );
132-
// }
133124
}
134125

135126
// find mapping method or conversion for value

processor/src/main/java/org/mapstruct/ap/internal/model/PropertyMapping.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ public class PropertyMapping extends ModelElement {
8282
private final Assignment defaultValueAssignment;
8383
private List<ForgedMethod> forgedMethods = new ArrayList<ForgedMethod>();
8484

85-
public List<ForgedMethod> getForgedMethods() {
86-
return forgedMethods;
87-
}
88-
8985
private enum TargetWriteAccessorType {
9086
FIELD,
9187
GETTER,
@@ -967,6 +963,10 @@ public List<String> getDependsOn() {
967963
return dependsOn;
968964
}
969965

966+
public List<ForgedMethod> getForgedMethods() {
967+
return forgedMethods;
968+
}
969+
970970
@Override
971971
public String toString() {
972972
return "PropertyMapping {"

0 commit comments

Comments
 (0)