mirror of
https://github.com/zaaarf/lillero-mapper.git
synced 2024-11-26 06:14:48 +01:00
fix: forgot the descriptor in a few places
This commit is contained in:
parent
e07a0ac423
commit
3000895130
2 changed files with 2 additions and 2 deletions
|
@ -51,7 +51,7 @@ public class MultiMapper extends AbstractMapper {
|
|||
data.getFields().forEach((fieldName, fieldData) -> {
|
||||
for(int i = 1; i < mapperList.size(); i++)
|
||||
fieldData = mapperList.get(i).getFieldData(fieldData.parentClass.nameMapped, fieldData.nameMapped);
|
||||
sumData.addField(fieldName, fieldData.nameMapped);
|
||||
sumData.addField(fieldName, fieldData.nameMapped, fieldData.descriptor);
|
||||
});
|
||||
|
||||
this.mappings.put(sumData.name, sumData);
|
||||
|
|
|
@ -89,7 +89,7 @@ public class ClassData {
|
|||
ClassData reverse = new ClassData(this.nameMapped, this.name);
|
||||
this.methods.forEach((signature, data) -> reverse.addMethod(nameMapped, signature.name,
|
||||
MappingUtils.mapMethodDescriptor(signature.descriptor, mapper, false)));
|
||||
this.fields.forEach((name, data) -> reverse.addField(data.nameMapped, name));
|
||||
this.fields.forEach((name, data) -> reverse.addField(data.nameMapped, name, data.descriptor));
|
||||
return reverse;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue